[Webkit-unassigned] [Bug 15145] New: (0.999).toPrecision(1) returns incorrect result.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 4 13:59:17 PDT 2007


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

           Summary: (0.999).toPrecision(1) returns incorrect result.
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: gminette at belfry.com


In Safari 2.0.4 and also in the latest nightly webkit build, the javascript
statement:
    (0.999).toPrecision(1);
will return the incorrect result "0.10" instead of the correct result which
would be "1.0"


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