diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-04-10 09:38:11 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-04-10 09:38:11 +0200 |
commit | 8bbc810540cfed397527d716b822511efa4a2723 (patch) | |
tree | 3d1fcaabc47f214159746099108f5e2a76425723 /src/luaconf.js | |
parent | 6257b9cf5ea6a9fed6fd0849182cc15ed1e57c7a (diff) | |
download | fengari-8bbc810540cfed397527d716b822511efa4a2723.tar.gz fengari-8bbc810540cfed397527d716b822511efa4a2723.tar.bz2 fengari-8bbc810540cfed397527d716b822511efa4a2723.zip |
Fixed %g in sprintf.js to not keep trailing zeros
Diffstat (limited to 'src/luaconf.js')
-rw-r--r-- | src/luaconf.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luaconf.js b/src/luaconf.js index 190893a..3314d5c 100644 --- a/src/luaconf.js +++ b/src/luaconf.js @@ -24,7 +24,7 @@ const LUA_INTEGER_FRMLEN = ""; const LUA_NUMBER_FRMLEN = ""; const LUA_INTEGER_FMT = `%${LUA_INTEGER_FRMLEN}d`; -const LUA_NUMBER_FMT = "%.7g"; +const LUA_NUMBER_FMT = "%.14g"; const lua_getlocaledecpoint = function() { return (1.1).toLocaleString().substring(1, 2); |