[Webkit-unassigned] [Bug 12821] New: Number.toExponential doesn't work for negative numbers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 19 16:33:30 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12821

           Summary: Number.toExponential doesn't work for negative numbers
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: markmalone at mac.com


here's the sample script:
var val = -18450000000000000000;
var res = val.toExponential(6);


Expected it to return "-1.845000e+19" but got NaN instead.

After further investigation it appears that this problem only exists for
negative numbers.


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