Skip to content

Commit b3c260b

Browse files
committed
Keep decimal point to indicate the number is floating point
1 parent 8cae8cb commit b3c260b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/test/json.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616
do
1717
local double = 2 ^ 53
1818
print(json.encode(double))
19-
assert(json.encode(double)=="9007199254740992")
19+
assert(json.encode(double)=="9007199254740992.0")
2020
assert(json.decode(json.encode(double))==double)
2121
end
2222

0 commit comments

Comments
 (0)