SamboyCoding / Tomlet

Zero-Dependency, model-based TOML De/Serializer for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Floats with comma instead of point

Santorayo3 opened this issue · comments

I have an issue when I save a toml file with a float value in it it gets save as "10,0" with a comma as I'm working on a German computer. When I try to load that file I get an "Tomlet.Exceptions.TomlMissingNewlineException: Expecting a newline character at the end of a statement on line 2, but found an unexpected ','

I guess the float needs to be saved as Culture Invariant to prevent the comma from ending up in the file.

What Tomlet version are you using? This should have been fixed recently.

Ah, it's been a while since I last updated. I'll try that and thanks for letting me know. :)

Closing due to inactivity - assuming that updating solved this problem.