|
According to the
documentation, "all conversions from strings to numbers accept
both a dot and the current locale mark
as the radix character.
(The Lua lexer, however, accepts only a dot.)", so how do you make
that works? Here is what I get on a Fedora 24 desktop: % echo $LANG; lua fr_FR.UTF-8 Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio > "3.14" + 1 4.14 > "3,14" + 1 -- in French the radix character is a comma stdin:1: attempt to perform arithmetic on a string value stack traceback: stdin:1: in main chunk [C]: in ? |