1
0
mirror of https://github.com/lua/lua.git synced 2025-01-14 05:43:00 +08:00
lua/testes
Roberto Ierusalimschy 7f5c31cdca Fixed bug in 'string.format' with option '%f'
As an example, 'print(string.format("%.99f", 1e70))' may have a
lot of garbage after the number.

The old test to ensure that 'string.format("%.99f", n)' was not too
large, 'fabs(n) < 1e100', assumes that the number will fit in the 99
bytes; but the 99 is not the space for the number, it is the added
extra zeros.  The option worked for smaller numbers because of the
extra space added to MAX_ITEM.
2019-07-23 12:46:33 -03:00
..
2019-07-18 15:31:22 -03:00
2019-07-18 14:58:15 -03:00
2019-06-21 10:21:07 -03:00
2019-06-26 13:26:36 -03:00
2019-06-18 16:52:22 -03:00
2019-07-10 14:58:31 -03:00
2019-07-18 15:31:22 -03:00
2018-12-14 13:49:02 -02:00
2019-06-04 11:22:21 -03:00
2019-04-11 11:29:16 -03:00