lua-users home
lua-l archive

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


> I was pleasantly surprised just now to find that tonumber( "nan" ) does 
the
> right thing. Similarly for the infinities. So, one could dump numbers by
> testing for the special cases and writing out an appropriate tonumber 
call.

It is completely dependent on the underlying C library. On mine, C9x style 

hexadecimal floating point works, too, which would be a nice addition
to the Lua grammar.

R.