[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tostring vs. nan, inf
- From: Coda Highland <chighland@...>
- Date: Thu, 12 Apr 2012 10:31:57 -0500
On Thu, Apr 12, 2012 at 10:26 AM, Jose Torre-Bueno <jtorrebueno@cox.net> wrote:
> But I notice nan cannot be assigned to a variable, the variable is set to nil.
That's because nan isn't a constant. It's just a variable that happens
to be undefined. If you say "nan = 0/0" then it'll behave as you'd
expect.
/s/ Adam
- References:
- tostring vs. nan, inf, Alexander Gladysh
- Re: tostring vs. nan, inf, Luiz Henrique de Figueiredo
- Re: tostring vs. nan, inf, Alexander Gladysh
- Re: tostring vs. nan, inf, Martin Guy
- Re: tostring vs. nan, inf, Luiz Henrique de Figueiredo
- Re: tostring vs. nan, inf, Jose Torre-Bueno