[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: serialization of lua numbers
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 26 Mar 2012 17:25:34 -0300
> > Does this means that %0.17g trick is not lossless for all finite
> > numbers or is there other downside to it?
>
> It's lossless for all finite numbers, yes. The advantage to using
> hexafloats is that it's more efficient, not that it's more correct.
I think hexafloat is also more elegant; in particular, it is easier to
see that it is lossless.
-- Roberto