fix #1352: avoid conversion to exponential notation

This commit is contained in:
debugtalk
2022-06-14 13:22:07 +08:00
parent 50c4c94100
commit 5a5b83fc89
13 changed files with 33 additions and 27 deletions

View File

@@ -613,6 +613,8 @@ func TestConvertString(t *testing.T) {
{"123", "123"},
{123, "123"},
{1.23, "1.23"},
{100000000000, "100000000000"}, // avoid exponential notation
{100000000000.23, "100000000000.23"},
{nil, "<nil>"},
}