lua-users home
lua-l archive

Re: What controls the decimal delimiter?

[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

AltStyle によって変換されたページ (->オリジナル) /