lua-users home
lua-l archive

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

2013/9/9 Tim Hill <>:
> On Sep 9, 2013, at 6:02 AM, Roberto Ierusalimschy <> wrote:
>> Well, we do not. We could debate whether tostring{} -> 0x83ffda8 or even
>> tostring("123") is CORRECT. Anyway, the manual is very clear about it:
>>  "Receives an argument of any type and converts it to a string in a
>>  reasonable format."
>> The key word there is *reasonable*.
>> -- Roberto
> People will of course argue what "reasonable" means :)

The key sentence in Roberto's e-mail is 'Well, we do not.', which was
in response to the answer "Yes, I think we do." in reply to the question
'Do we really want "tostring(0.1)" to return "0.10000000000000001"?'

I.e. the Lua team is not going to change the default output format,
no matter how long this thread goes on.

Signing off,