Possible Duplicates:
Why 81.66 * 15 = 1224.8999999 in Javascript (or Perl) and not 1224.9 ?
Is JavaScript’s math broken?
var t1 = 5000;
var t2 = 0.07;
alert(t1 * t2);
Here is very simple code that return incorrect result;
I predict the result is 350
but the result is 350.00000000000005
How can I get correct result?
and what's wrong in this code?