Re: What controls the decimal delimiter?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: What controls the decimal delimiter?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2023年1月23日 07:22:38 -0300
> 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