lua-users home
lua-l archive

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


> > What is wrong with the following code?
> >
> >   math.nan = 0/0
> >   math.inf = 1/0
> 
> If you've compiled Lua with integer Numbers rather than floating point 
> ones, this will crash and burn, probably.

Is there any reason why anyone would use such library in that case?

-- Roberto