[Webkit-unassigned] [Bug 31777] Number.toFixed returns wrong values
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 27 12:56:54 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=31777
Gavin Barraclough <barraclough at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
CC| |barraclough at apple.com
--- Comment #4 from Gavin Barraclough <barraclough at apple.com> 2010-08-27 12:56:54 PST ---
yep, this is a dupe.
ieee754(.95) < decimal(.95), hence rounds up to 0.9 (ecma-262 15.7.4.5 requires we select the nearest value).
ieee754(9.5) == decimal(9.5), hence rounds up to 10 (ecma-262 15.7.4.5 requires we select the larger to two equally near values).
*** This bug has been marked as a duplicate of bug 24711 ***
--
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