Comment #12 on issue 3579 by [email protected]: Math.log2 and Math.log10 should be exact for exact powers
https://code.google.com/p/v8/issues/detail?id=3579

Your implementation seems to have minor flaws. Open the test page and try this in the devtools console:

Math.log2(8)  // Check that we are indeed using your implementation
2.9999999999999996
log2(8)
3

log2(_ConstructDouble(0, 512))  // Should return -1065
-1064.9999999999998

I haven't looked closer into this. Maybe this is working as intended? For some reason, the test framework does not catch this.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to