Closed PythooonUser closed 1 year ago
Fixes #285.
The issue was that DecimalFormat uses a locale that is probably dependent on the system.
DecimalFormat
So in English systems, the value is 0.7, whereas in German the value is 0,7.
0.7
0,7
When parsing the string as double that contains a comma, we get the exception.
Now, we explicitly set . to be the decimal format symbol.
.
Fixes #285.
The issue was that
DecimalFormat
uses a locale that is probably dependent on the system.So in English systems, the value is
0.7
, whereas in German the value is0,7
.When parsing the string as double that contains a comma, we get the exception.
Now, we explicitly set
.
to be the decimal format symbol.