lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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