in reply to Re^7: Avoiding perl's Atof when assigning floating point values
in thread Avoiding perl's Atof when assigning floating point values
On current bleadperl (and recent "double" and "long double" perls) it outputs:use warnings; use locale; $m = "3.14e+9" + 0; $n = "3,14e+9" + 0; print "\$m is $m\n"; print "\$n is $n\n";
But when I patch bleadperl to assign with Perl_strtod (or run that script on a quadmath build of perl) it outputs:$m is 3140000000 $n is 3140000000
AFAICT, it pertains solely to the numification of strings. When values are assigned as barewords, there's no difference between the behaviour of the various builds.$m is 3140000000 $n is 3
|
|---|