From fa23ad87c76626c3d10cee8add20fc676f2c8c8f Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Thu, 18 Mar 2021 12:07:16 -0400 Subject: [PATCH] eris: change the default number format to %.16g --- luprex/eris-master/src/luaconf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luprex/eris-master/src/luaconf.h b/luprex/eris-master/src/luaconf.h index 1b0ff59f..89fe2202 100644 --- a/luprex/eris-master/src/luaconf.h +++ b/luprex/eris-master/src/luaconf.h @@ -400,9 +400,9 @@ @@ LUAI_MAXNUMBER2STR is maximum size of previous conversion. */ #define LUA_NUMBER_SCAN "%lf" -#define LUA_NUMBER_FMT "%.14g" +#define LUA_NUMBER_FMT "%.16g" #define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n)) -#define LUAI_MAXNUMBER2STR 32 /* 16 digits, sign, point, and \0 */ +#define LUAI_MAXNUMBER2STR 32 /* 18 digits, sign, point, and \0 */ /*