Status: New
Owner: ----
New 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
Current results in Chrome:
> Math.log2(8)
< 2.9999999999999996
> Math.log10(1e15)
< 14.999999999999998
log2 and log10 should ideally return precise results for exact powers of 2
and exact positive powers of 10. (Negative powers of 10 can't be
represented in JS anyway.)
As well, this might conflict with other rounding concerns, but it would be
great if the logX functions were strictly monotonic around these exact
values, so that:
for all x < 2^k, log2(x) < k
for all x > 2^k, log2(x) > k
and similar for 10. This would allow naive "number of digits" tests to
always return the correct answer.
--
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.