On Thu, Sep 18, 2014 at 3:17 AM, Claude Pache <[email protected]> wrote:
> Just tried in the console of Chrome (with "Experimental JavaScript > features" flag enabled). > > > Math.log2(8) > < 2.9999999999999996 > > Firefox gives me the correct answer (3). > > Question: Should Math.log2 give exact results for powers of 2? > > The same issue holds for Math.log10 (might be applicable for nonnegative > powers only): Math.log10(1e15) != 15 in Chrome. > If you can, please file a bug against v8: https://code.google.com/p/v8/issues/entry I consider these to be bugs in the implementation. > > —Claude > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > > -- Ray
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

