[Webkit-unassigned] [Bug 15631] New: Arithmetic errors with LOG10E

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 22 15:25:50 PDT 2007


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

           Summary: Arithmetic errors with LOG10E
           Product: WebKit
           Version: 523.x+ (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: jcostell at tibco.com


The value of the following should be 3, but on Safari it is 2.9999999999999996

Math.LOG10E * Math.log(1000)

This may be because Math.LOG10E is calculated too accurately. It is
0.43429448190325176 on Safari and 0.4342944819032518 on Firefox and IE.

One work around is to set the value of LOG10E to 0.4342944819032518. The
following evaluates to 3 on Safari:

0.4342944819032518 * Math.log(1000)

This may affect other Math constants. LOG10E is the only one that I have
checked.


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