JKISoftware / JKI-JSON-Serialization

JSON Serialization & Deserialization Library for LabVIEW
http://jki.net/tools#json
BSD 3-Clause "New" or "Revised" License
25 stars 9 forks source link

Use %#g format string for floating and fixed point types #25

Open jimkring opened 7 years ago

jimkring commented 7 years ago

For example: 2647141 stored as a ‘single float’ becomes “2.64714E+6” in the JSON string, resulting in loss of precision. Changing the formatting of floats and fixed point types to %#g solves this.

Side note: This is what EasyXML does and it works great.