[luatex] behavior of string.format
Herbert Voss
Herbert.Voss at fu-berlin.de
Sun Mar 10 12:36:25 CET 2019
Am 10.03.19 um 00:12 schrieb Reinhard Kotucha:
> Hi,
> I just noticed that the TL-2019 version of luatex breaks many of my
> scripts.
>
> In the past
>
> string.format('%d', math.pi)
>
> returned the integer part of math.pi but the latest release crashes
> with an error message:
>
> bad argument #2 to 'format' (number has no integer representation)
see http://www.lua.org/manual/5.3/manual.html#pdf-string.format
Options|A|,|a|,|E|,|e|,|f|,|G|, and|g|all expect a number as argument.
Options|c|,|d|,|i|,|o|,|u|,|X|, and|x|expect an integer.
Herbert
More information about the luatex
mailing list