Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Perl returns NaN after addition

by syphilis (Canon)
on Oct 17, 2013 at 03:37 UTC ( #1058591=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Perl returns NaN after addition
in thread Perl returns NaN after addition

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


Comment on Re^3: Perl returns NaN after addition

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058591]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (19)
As of 2014-04-16 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (428 votes), past polls