Use %g instead of %e for float representation in dump format

`%g` use shorter representation than `%e`.
This commit is contained in:
KOBAYASHI Shuji
2019-01-11 19:54:46 +09:00
parent 980b7b5c50
commit 2d8aec2b88
+2 -2
View File
@@ -18,9 +18,9 @@
#ifndef MRB_WITHOUT_FLOAT
#ifdef MRB_USE_FLOAT
#define MRB_FLOAT_FMT "%.8e"
#define MRB_FLOAT_FMT "%.9g"
#else
#define MRB_FLOAT_FMT "%.16e"
#define MRB_FLOAT_FMT "%.17g"
#endif
#endif