Unverified Commit 17333bde authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4222 from shuujii/use-g-instead-of-e

Use `%g` instead of `%e` for float representation in dump format
parents 348526e1 2d8aec2b
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment