javascript thread: Why does toFixed(0) convert 0.5 to 0?
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 ? >
|





