Change handling of negative exponents in GenericParseNumber
Rather than enforcing a limit on the smallest exponent, pass all negative exponents straight to pow(...) and let it deal with it. Per IEEE754 pow(10, -Inf) should yield 0, and the cast should round properly for larger negative exponents (smaller than -37.) Bug: 852785 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: Iccd80f7e80c8b87c49cd5eedf5e49ad1e9ccc8dc Reviewed-on: https://chromium-review.googlesource.com/1102329 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#567660}
Showing
Please register or sign in to comment