[Webkit-unassigned] [Bug 24711] 1.95.toFixed(1) should equal "1.9" but does not
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 27 12:48:24 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=24711
Gavin Barraclough <barraclough at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
CC| |barraclough at apple.com
--- Comment #8 from Gavin Barraclough <barraclough at apple.com> 2010-08-27 12:48:23 PST ---
For a simpler explanation of why this is a valid bug, try:
javascript:alert((1.95).toPrecision(21))
(but! this also doesn't work in ToT!) - the correct result should be 1.94999999999999995559.
Since the precise mathematical value passed to toFixed is closer to 1.9 than 2.0, 1.9 is the correct result.
This should be fixed by https://bugs.webkit.org/show_bug.cgi?id=44745
*** This bug has been marked as a duplicate of bug 44745 ***
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list