[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Empty? No. Array? No. Has? Yes.
- From: Andrew Starks <andrew.starks@...>
- Date: Sat, 6 Jul 2013 13:40:38 -0500
On Saturday, July 6, 2013, Javier Guerra Giraldez wrote:
On Sat, Jul 6, 2013 at 12:07 PM, Jose Torre-Bueno <jtorrebueno@cox.net> wrote:
> I am not understanding what is wrong with using nan as a place holder
> n1=0/0
> n2=0/0
> print (n1, n2, n1==n2, n1==n1)
-nan -nan false false
how do you use a placeholder that can't be equal to anything, not even
to itself?
--
Javier
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.
- References:
- Empty? No. Array? No. Has? Yes., Dirk Laurie
- Re: Empty? No. Array? No. Has? Yes., steve donovan
- Re: Empty? No. Array? No. Has? Yes., David Heiko Kolf
- Re: Empty? No. Array? No. Has? Yes., Roberto Ierusalimschy
- Re: Empty? No. Array? No. Has? Yes., Jay Carlson
- Re: Empty? No. Array? No. Has? Yes., Mark Hamburg
- 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