This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
do_sv_dump: increase NV precision to be output
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>
Sun, 6 Mar 2022 12:39:52 +0000 (21:39 +0900)
committerYves Orton <demerphq@gmail.com>
Wed, 9 Mar 2022 02:44:17 +0000 (03:44 +0100)
commitd4f3575722c94cdc1548d94cd4bd5db816bf1580
tree85800e456867ec0278a26c71c826cdddd123fa42
parentaae976026340be76ebdfbcf18e11b70ed486b84c
do_sv_dump: increase NV precision to be output

Previously do_sv_dump used to print typically only 15 significant digits
of NV (on IEEE 64-bit NVs), which may lose some least significant bits of
the floating-point number.  It now prints more digits (17 digits on the
same configuration) so any adjacent floating point numbers can be
distinguished.
dump.c