summaryrefslogtreecommitdiffhomepage
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index 38262ca..8a7986b 100644
--- a/types.c
+++ b/types.c
@@ -1567,7 +1567,7 @@ ucv_to_stringbuf_formatted(uc_vm_t *vm, uc_stringbuf_t *pb, uc_value_t *uv, size
else if (d == -INFINITY)
ucv_stringbuf_append(pb, "-Infinity");
else
- ucv_stringbuf_printf(pb, "%g", d);
+ ucv_stringbuf_printf(pb, "%.14g", d);
break;