Javascript round issue

Hello, i did put together this cool JavaScript code

it works but with one issue.
After calculations i m saving the data to my database!
But data after save does not match entered numbers

if i enter in "first payment $$$ " 1000 after save it becomes 1000.09

why is that so?

I put in 1000, and the first payment % field updates with 20.41, and the max loan becomes 3900.

When I enter a value in to the first payment % field of 20.41, the first payment $$$ field becomes 1000.09

So, rounding the percentage to two decimal places is why the difference occurs there.

1 Like

@Paul_Wilkins Hi , thanks for replay!
Yeah rounding is the issue so i just made another hidden input to get rid of this issue!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.