SamboyCoding / Tomlet

Zero-Dependency, model-based TOML De/Serializer for .NET
MIT License
155 stars 29 forks source link

Floats with comma instead of point #25

Closed Santorayo3 closed 1 year ago

Santorayo3 commented 1 year ago

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.

SamboyCoding commented 1 year ago

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

Santorayo3 commented 1 year ago

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

SamboyCoding commented 1 year ago

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