[Webkit-unassigned] [Bug 19776] Number.toExponential() is incorrect for numbers between 0.1 and 1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 2 10:40:20 PDT 2008


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





------- Comment #4 from cwzwarich at uwaterloo.ca  2008-07-02 10:40 PDT -------
Created an attachment (id=22049)
 --> (https://bugs.webkit.org/attachment.cgi?id=22049&action=view)
Proposed patch

Actually, the problem isn't with decimalPoint and decimalAdjust, it's with what
is done with the decimalPoint value in exponentialPartToString(). The sign
check on the exponent is done on the decimalPoint value before subtracting 1 to
get the exponent. Here is a patch that fixes it.

I'll write some tests later and put it up for review, but I don't have the time
before my calculus tutorial.


-- 
Configure bugmail: https://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