[Webkit-unassigned] [Bug 31777] Number.toFixed returns wrong values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 22 01:06:09 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31777





--- Comment #2 from bugzilla33 <bugzilla33 at gmail.com>  2009-11-22 01:06:09 PST ---
toFixed rounds, not floors !
bug 24711 is not a Bug !!

(1.95) . toFixed( 1 ) = 2.0

because:

Math.round ( 1.95 * 10 ) / 10
equal 2

-- 
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