The way TinyJson parses float can create issue if the current culture is not English. French for example uses comma to separate floats and not points which then cause TinyJson to be unable to parse various AStar parameters.
This will become forcibly true if you are working on consoles and the system language the user uses is not English.
One simple way to fix that is to change the multiple float.Parse found in TinyJson with
float.Parse([stringToParse], System.Globalization.NumberFormatInfo.InvariantInfo)
Hope that helps.
Laurent.
PS: Sorry did not find where to report bugs elsewhere.
1 Like
Hi
Thanks for the bug report!
Good catch. I will fix this in the next update.
Hello ,
We have seen an observation with TinyJSON library source file → Json-maker.c
conversion with json_double() function results in rounding after 3rd decimal digit in some cases.
example :
- value of 111.1234 is stored in JSON file as 111.123. where as value of 111.1236 is saved as 111.125. → rounding is seen.
- value of 89.1234 is stored in JSON file as 89.1234 and 89.1236 is saved as 89.12346. → rounding not seen.
Thanks in advance for your feedback.
Regards,
Raman
Hi
This doesn’t seem relevant for this package. I think you may be confusing my library for someone else’s.