aboutsummaryrefslogtreecommitdiff
path: root/tests/numbers.json
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-05-29 18:03:22 +0930
committerMark Pulford <mark@kyne.com.au>2011-05-29 18:03:22 +0930
commit3d1c5e19f45cf484774926ba6e2555d1c8e4c39b (patch)
treef6cd7cc888ec643d025a37810fe7f15cc91d7381 /tests/numbers.json
parentc0b473a8e974407dc308ce0fd0058136b9faa90c (diff)
downloadlua-cjson-3d1c5e19f45cf484774926ba6e2555d1c8e4c39b.tar.gz
lua-cjson-3d1c5e19f45cf484774926ba6e2555d1c8e4c39b.tar.bz2
lua-cjson-3d1c5e19f45cf484774926ba6e2555d1c8e4c39b.zip
Add support for runtime number precision config
Add cjson.encode_number_precision(). Reducing the number precision from 14 to 3 can increase performance up to 50% with number heavy conversions.
Diffstat (limited to 'tests/numbers.json')
-rw-r--r--tests/numbers.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/numbers.json b/tests/numbers.json
new file mode 100644
index 0000000..ef11a26
--- /dev/null
+++ b/tests/numbers.json
@@ -0,0 +1,7 @@
1[ 0.110001000000000000000001,
2 0.12345678910111213141516,
3 0.412454033640,
4 2.6651441426902251886502972498731,
5 2.718281828459045235360287471352,
6 3.141592653589793238462643383279,
7 2.14069263277926 ]