http://www.perlmonks.org?node_id=11123159


in reply to Re^5: int() function
in thread int() function

We seem to have different priorities.

If there is a 16th decimal digit printed I expect it to be correct in any case.

Maybe one of those dump commands should be included into core to help clarifying what's happening by using printf '%.17f' for floats.

Raku's solution seems far better than the Py3 one, because people expect decimal DWIM.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery