lua-users home
lua-l archive

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


> > 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