Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Not a Number

by rasta (Hermit)
on Oct 18, 2002 at 07:45 UTC ( #206238=note: print w/replies, xml ) Need Help??


in reply to Re: Not a Number
in thread Not a Number

NaN is an IEEE standard constant which stands for Not a Number. It is returned if an invalid operation exception occurs within an operation.

For example, sqrt(-1) will return a number with a bit configuration that is recognized as NaN because this operation would result in an imaginary number.

Therefore regexps don't help us in that issue.

-- yuriy

Replies are listed 'Best First'.
Re: Re: Re: Not a Number
by physgreg (Scribe) on Oct 18, 2002 at 13:42 UTC
    When I tried the sqrt(-1) example, I got the message
    Can't take sqrt of -1 at -e line 1.
    so it would seem that NaN is not used.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2020-12-03 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (49 votes). Check out past polls.

    Notices?