[Webkit-unassigned] [Bug 104247] New: Strange results calculating a square root in a loop

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 6 02:59:09 PST 2012


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

           Summary: Strange results calculating a square root in a loop
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
               URL: http://jsfiddle.net/LgEDL/1/
        OS/Version: Mac OS X 10.8
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: konstantin.k.ed at gmail.com


I'm computing the square root of an arbitrary number about a 1000 times and printing the result only if it's less than 0. At some point it starts printing 2.236.... (for sqrt of 5) which is the expected result, but shouldn't be printed since it's not a negative number. Furthermore, some iterations later it starts printing some large (negative for some inputs to sqrt) number.

I noticed it breaks for some numbers inside sqrt (5,7,11,15) but not for others (6, 13)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list