lua-users home
lua-l archive

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

on 3/17/04 7:26 AM, Albert-Jan Brouwer at wrote:

> Lastly, serialization of infinite numbers and numbers that are
> not a number requires special handling for which there are
> no good provisions.

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.