lua-users home
lua-l archive

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


> When I output a number value, e.g. 42.0, it is normally output with a decimal point.

The locale controls that.

% lua
> tonumber("42,0")
nil
> os.setlocale"de_DE"
de_DE
> tonumber("42,0")
42,0
> tonumber("42.0")
42,0