mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use %g instead of %e for float representation in dump format
`%g` use shorter representation than `%e`.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user