I'm having issues with the way the apps I create deliver the mathematical results. The problem is that it's rounding the results to my specifications, and I don't want that—I want the exact number. Help! How can I solve this? I need to get the exact results.
So in this case lets say that ENTRY is 0.03200954.
the result that it is giving is 0.03242 it represent the 1.1%
but if I make the requested math prioblem on the phone calculator it will shows me: 0.032416354 and this represent exactly 1.0%
Passing a numerical result through a text display field can lose precision.
Keep values in variables until they need to be displayed, then format them as needed.
Regarding that 0.01 multiplier, did you know that AI2 has an internal data type for rational numbers, where it keeps integral numerators and denominators until it is forced to switch to floating point.
So instead of
x = x + (.01 * x)
try
x = (101/100) * x
Please change 0.01 for 0.02 it will give you 0.0327354 what is the 1.99% and as you go further, like 0.05 the % result will be 4.86 and it should be 5% exactly. and I dont know why
I have diferente level like this, from 0.01 to 0.05 and as the % gratually decreases
.
Look, it does not change the XXXXX54XXX, why? Sorry to bother you and I would like to say that I really appreciate your help. it seems to be working only with the first 6 digits