Forum Moderators: open
I do not know why when I use javascript to figure out 52.15/100, I get 5.2149. How to solve it?
This won't help much, but it will leave you in a state of knowing confusion:
[merlyn.demon.co.uk...]
52.15/[red]100[/red] --> 5.2149 This is bad behaviour indeed!
I'm thinking you mean:
52.15/[blue]10[/blue] --> 5.2149
I have tried this calculation with various Javascript/JScript interpreters, and can't reproduce the problem. All results are:
5.215 What are you running this in?