[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Pretty printing serialization
- From: Mark Hamburg <mhamburg@...>
- Date: Wed, 17 Mar 2004 08:56:46 -0800
on 3/17/04 7:26 AM, Albert-Jan Brouwer at acj.brouwer@citeng.com 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.
Mark