• Resolved ivangneiding

    (@ivangneiding)


    Hello. I’m creating a form that gets 2 numbers (actually more, but I’m having problem with those 2 ones), lets say number A and number B, and I need this calculation:
    B / 12
    and then
    A / (B / 12)
    For example (here we use coma as decimal separator):
    A = 8,38
    B = 0,89
    For that I will introduce a new number that will be automatically calculated:
    C = B / 12
    So, C = 0,89 / 12 = 0,07 (would use only 2 decimals, but using more than that bring same error). Its working fine for now.
    Next step: A / C my result is 112,98 but using any calculator 8,38 / 0,07 = 119,71
    The weird thing is if in calculate field I put the number manually: 8,38/0,07 it brings me the right results. However, if I use the data from input fields it calculates wrong. No matter if I use something like A / (B / 12) or 12 * (A / B) I always get the same wrong calculation.
    Any hints on whats happening here?

    Thanks in advance.

    • This topic was modified 10 months, 2 weeks ago by ivangneiding.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong calculation when using input field’ is closed to new replies.