good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^8: Avoiding perl's Atof when assigning floating point valuesby syphilis (Archbishop) |
on Jul 31, 2018 at 14:36 UTC ( [id://1219577]=note: print w/replies, xml ) | Need Help?? |
I probably ought at least find out exactly what that change of behaviour is Here's the script that demonstrates that change of behaviour: On current bleadperl (and recent "double" and "long double" perls) it outputs: But when I patch bleadperl to assign with Perl_strtod (or run that script on a quadmath build of perl) it outputs: 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. And I think it comes into play only if the locale radix character is a comma. My next step is to find out whether this needs to be fixed before my proposed patches can be applied. Cheers, Rob
In Section
Meditations
|
|