Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Why does toFixed(0) convert 0.5 to 0?


Message #1 by myprm@m... on Fri, 6 Dec 2002 18:45:42
	I've just made some tests, and it seems that the problem is in MS
JScript script engin :
the problem presents in IE as well as in ASP / WSH

> -----Message d'origine-----
> De : SEAK, Teng-Fong
> Envoy=C3=A9 : mardi 10 d=C3=A9cembre 2002 15:55
> =C3=80 : 'javascript'
> Objet : RE: [javascript] Re: Why does toFixed(0) convert 0.5 to 0?
>
>
> 	Indeed, you're right.  From 0.5 to 0.94, my IE6 also
> returns 0.  What a sh*t !
>
> 	So, is your problem solved ?
>

  Return to Index