lua-users home
lua-l archive

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

2014-03-04 16:48 GMT+02:00 Andrew Starks <>:
> On Tue, Mar 4, 2014 at 8:06 AM, joao lobato <> wrote:
>> Perhaps "%s" should explicitly mean "invoke tostring on this".
>> (Maybe it already does :-) )
> Yes. My first observation was focusing on number's __tostring method
> defaulting to "%f" instead of "%.f".

Actually,  LUA_NUMBER_FMT defaults to "%.14g", hardwired. A clean
solution would be to make it settable via debug.number_format(s).