good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Any reason NV is not marked as POK when accessed as string?by syphilis (Archbishop) |
on Mar 23, 2017 at 23:16 UTC ( [id://1185694]=note: print w/replies, xml ) | Need Help?? |
... makes me think maybe we used to trust the cached value I think https://www.nntp.perl.org/group/perl.perl5.porters/2016/10/msg240576.html and responses is relevant here. As also mentioned there, the stringification of the NV is retained if the NV is an inf or nan. I assumed this was ok because stringifications of inf and nan were not affected by locale. (But I notice that stringification of 0.0 to "0" is not retained.) Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|