json.lua icon indicating copy to clipboard operation
json.lua copied to clipboard

fix #41: Large numbers serialized incorrectly

Open aleksanderd opened this issue 3 years ago • 2 comments

aleksanderd avatar Nov 11 '22 18:11 aleksanderd

Proper fix should be just using "%.17g".

appgurueu avatar Dec 17 '22 16:12 appgurueu

Okay no, to support newer Lua versions and 64-bit integers, math.tointeger and %d should indeed be used; %g would have to be bumped to %.20g.

appgurueu avatar Jun 25 '23 07:06 appgurueu