Imprecise calculations issue
-
Hi everyone!
Trying to calculate 21% tax of an amount. For example, of 22. Creating several fields:
Enter an amount (fieldname5)
Amount plus tax (fieldname5*1.21)
Amount minus tax (fieldname5*79)/100
Tax (fieldname5*0.21)
Calculate buttonThat is what happens:
Amount plus tax calculated as 26.619999999999997 although it’s 26.62 http://prntscr.com/uhyumq
If an amount is 10, Tax calculated as 2.0999999999999996 http://prntscr.com/uhyuhv if i set my formula to fieldname2-fieldname5
And same unpredictable mistakes from the plugin with other amounts, but most taxes calculated correctlyPlease have direct link to an example of calculation form: https://calculife.com/?cff-form=236
I have tried out different options of loading the forms, different encoding and change formulas, nothing helps. Not only one form but many of them guilty of this unpredictably
Can it be fixed please? Any idea how to do this?
- The topic ‘Imprecise calculations issue’ is closed to new replies.