There's more than one way to do things | |
PerlMonks |
Re^3: Perl returns NaN after additionby syphilis (Archbishop) |
on Oct 17, 2013 at 03:37 UTC ( [id://1058591]=note: print w/replies, xml ) | Need Help?? |
or, if the OP happens to use Math::BigFloat It's interesting that Math::BigFloat decides it has to numify a non-numeric string to NaN ... when everything else numifies such a string to zero. Actually, I'm tempted to s/interesting/stupid/, but maybe there's a precedent somewhere that gives some credence to the Math::BigFloat behaviour. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|