Ignore one ulp errors in printing reals.
@@ -106,7 +106,8 @@ const uint8_t *dst_cstring(const char *str) {
#define DST_BUFSIZE 36
static int32_t real_to_string_impl(uint8_t *buf, double x) {
- int count = snprintf((char *) buf, DST_BUFSIZE, "%.17g", x);
+ /* Use 16 decimal places to ignore one ulp errors for now */
+ int count = snprintf((char *) buf, DST_BUFSIZE, "%.16g", x);
return (int32_t) count;
}
