[Webkit-unassigned] [Bug 5258] toFixed() doesn't handle enough cases

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 26 13:08:41 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=5258





------- Comment #8 from rossacher at bluewin.ch  2007-06-26 13:08 PDT -------
toFixed as well as toPrecision do have failures which seem related to this
issue. The following testcase demonstrates one of the very clear ones.
<html>
<head>
<title>Test</title>
<script type="text/javascript">
var zahl1=1.0;
var zahl2=1.000000001;
var zahl3=-0.0;
var zahl4=-0.00001;
alert("1.0=="+zahl1.toPrecision(6)+"=="+zahl2.toPrecision(6));
alert("0.0=="+zahl3.toFixed(3)+"=="+zahl4.toFixed(3));
</script>
</head>
<body>
</body>
</html>
This issue was Bug 136734 in kde and is fixed meanwhile in kde(don't ask me
how. I did not have a look at the code till now)


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list