[Bug 237800] pow(3) returns inaccurate results

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 8 19:49:49 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237800

Peter Jeremy <peterj at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peterj at FreeBSD.org

--- Comment #3 from Peter Jeremy <peterj at FreeBSD.org> ---
We could special case "y is a small positive integer" - that might give a
better result though it's unclear in this case.

Alternatively, we could look at what perl is doing - converting between ASCII
strings and floating point values is full of dragons and evaluating pow(10,i)
anywhere in that process suggests it's not being done optimally.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-numerics mailing list