Skip to content

Commit 90cc57f

Browse files
committed
Change float precision in json test util
1 parent e2888e1 commit 90cc57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/json.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ local function encode_number(val)
116116
if val ~= val or val <= -math.huge or val >= math.huge then
117117
error("unexpected number value '" .. tostring(val) .. "'")
118118
end
119-
return string.format("%.17g", val)
119+
return string.format("%.16g", val)
120120
end
121121

122122

0 commit comments

Comments
 (0)