[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3: 1 Month of use
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 4 Mar 2014 18:21:21 +0200
2014-03-04 16:48 GMT+02:00 Andrew Starks <andrew.starks@trms.com>:
> On Tue, Mar 4, 2014 at 8:06 AM, joao lobato <btnfdp.lobato@gmail.com> 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).