[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Empty? No. Array? No. Has? Yes.
- From: Sean Conner <sean@...>
- Date: Sat, 6 Jul 2013 20:12:02 -0400
It was thus said that the Great Andrew Starks once stated:
> >
> type(n1) ~= "string" and tostring(n1) == "-nan"
> ? Is it type number? If so, it's the only number not equal to itself, so
> you've got that going for it.
"nan" seems to behave in an implementation dependent manner:
> n1=0/0
> n2=0/0
> print (n1, n2, n1==n2, n1==n1)
nan nan false false
-spc
- References:
- Re: Empty? No. Array? No. Has? Yes., Andrew Starks
- Re: Empty? No. Array? No. Has? Yes., Tim Hill
- Re: Empty? No. Array? No. Has? Yes., Andrew Starks
- Re: Empty? No. Array? No. Has? Yes., Tim Hill
- Re: Empty? No. Array? No. Has? Yes., Andrew Starks
- Re: Empty? No. Array? No. Has? Yes., Rena
- Re: Empty? No. Array? No. Has? Yes., Jorge
- Re: Empty? No. Array? No. Has? Yes., Jose Torre-Bueno
- Re: Empty? No. Array? No. Has? Yes., Javier Guerra Giraldez
- Re: Empty? No. Array? No. Has? Yes., Andrew Starks