Why does it jump from 76.74 to 56.739999995 insted of 56.74?
Did I skip a step?
I don’t even know how to google this
Why does it jump from 76.74 to 56.739999995 insted of 56.74?
Did I skip a step?
I don’t even know how to google this
You skipped nothing, floating point math is tricky in nearly every language, unless one plans very carefully for it.
In this case, I’d look at Math.toFixed() on DevDocs and simply round it to the precision you need.
Thanks snowmonkey! I think it will work out
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.