posted 19 years ago
Hi All
I have a function below which gives 5 with 0.05*100 but with 0.07, it gives 7.000000000000001 . Why and how to solve it?
function calc()
{
var a=0.05;
var b=0.07;
alert(a*100)
alert(b*100)
}
Thanks
kundan
SCJP1.4,SCBCD,SCEA,CNA
Failures are practice shoots for success.