From ca087aef0afc793e52e870da57cfddb17eeb5701 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 30 Dec 2017 02:19:55 +1100 Subject: src/luaconf.js: Fix bug introduced in c260105662e28778fe129a3a4500c1baf40ea109 --- src/luaconf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2