summaryrefslogtreecommitdiff
path: root/src/luaconf.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/luaconf.js')
-rw-r--r--src/luaconf.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luaconf.js b/src/luaconf.js
index 0843703..4bf8583 100644
--- a/src/luaconf.js
+++ b/src/luaconf.js
@@ -24,7 +24,7 @@ const lua_integer2str = function(n) {
};
const lua_number2str = function(n) {
- return String(Number(n.toPrecision(n))); /* should match behaviour of LUA_NUMBER_FMT */
+ return String(Number(n.toPrecision(14))); /* should match behaviour of LUA_NUMBER_FMT */
};
const lua_numbertointeger = function(n) {