lua-users home
lua-l archive

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


* Rob Kendrick:

> On Sat, Sep 04, 2010 at 10:54:59PM +0200, Florian Weimer wrote:
>
>> It could be argued that tostring is lossy for tables, so it can be
>> lossy for numbers, too.
>
> Surely converting a floating point number to a string like this is
> never not going to be lossy?

The default conversion in Lua (that is, tostring) is lossy,
unfortunately.