[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
Sun Nov 22 01:06:46 PST 2009


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


bugzilla33 <bugzilla33 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla33 at gmail.com




--- Comment #6 from bugzilla33 <bugzilla33 at gmail.com>  2009-11-22 01:06:45 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