[Webkit-unassigned] [Bug 15145] (0.999).toPrecision(1) returns incorrect result.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 19 19:04:47 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=15145
jason at threeve.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #16331| |review?
Flag| |
------- Comment #2 from jason at threeve.org 2007-09-19 19:04 PDT -------
Created an attachment (id=16331)
--> (http://bugs.webkit.org/attachment.cgi?id=16331&action=view)
Patch to fix Number.toPrecision rounding
This is my first WebKit patch; started with something relatively small and
easy. I welcome any and all input.
The problem seemed to be that when attempting to determine the best value for
n, the property n<intPow10(p) was broken and thus strange results were
returned. I hope the way I correct this is acceptable.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list