New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FloatToStr when decimal separator is not a dot #12
Comments
@lainz use DefaultFormatSettings.DecimalSeparator := ',' |
That's not a solution. The solution must be in JsonTools. We already patched it, so it always uses dot instead of comma. But I'm reporting so others doesn't have the same issue. Our patch is like this:
|
Using TFormatSettings would be the solution:
|
@lainz I have the same issue. I found I had to change the locale of the machine to have a . as a decimal place. |
OK I added it myself and all is working. Thanks for this. |
You're welcome. I don't share my unit since I think I modified a bit more, and it requires some of the project files, so I can't share. |
Hi, for example when the system locale is Spanish we use comma as decimal separator "," instead of dot "." that causes a problem when using FloatToStr and StrToFloat.
The text was updated successfully, but these errors were encountered: