WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 44745
16651
Firefox and JavaScriptCore differ in printing toFixed, toPrecision, toExponential
https://bugs.webkit.org/show_bug.cgi?id=16651
Summary
Firefox and JavaScriptCore differ in printing toFixed, toPrecision, toExponen...
Eric Seidel (no email)
Reported
2007-12-28 20:11:24 PST
WebKit and JavaScriptCore in printing toFixed, toPrecision, toExponential As part of
r29020
I checked in results which agree with Firefox. Pretty much all of the failures are intentional (range) differences from Firefox. There are a couple failures which I am uncertain about: FAIL (1234.567).toPrecision(21) should be 1234.56700000000000728. Was 1234.56700000000000000. FAIL (1234.567).toFixed(20) should be 1234.56700000000000727596. Was 1234.56700000000000000000. FAIL (123.456).toExponential(20) should be 1.23456000000000003070e+2. Was 1.23456000000000000000e+2. I'm not sure why there would be junk at the end of the values from firefox, but perhaps that's just part of the ECMA algorithm. We'll need to decide, and either file a bug with Firefox or chose to be different.
Attachments
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2007-12-29 19:30:42 PST
See:
http://bclary.com/2004/11/07/#a-15.7.4.6
http://bclary.com/2004/11/07/#a-15.7.4.7
Darin Fisher (:fishd, Google)
Comment 2
2009-03-21 15:19:52 PDT
V8 seems to match Firefox.
Gavin Barraclough
Comment 3
2010-08-27 12:58:46 PDT
*** This bug has been marked as a duplicate of
bug 44745
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug