JKI-JSON-Serialization icon indicating copy to clipboard operation
JKI-JSON-Serialization copied to clipboard

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

Open jimkring opened this issue 8 years ago • 0 comments

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.

jimkring avatar Aug 22 '17 21:08 jimkring