eris: change the default number format to %.16g
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user