summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
Diffstat (limited to 'strings')
-rw-r--r--strings/decimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/decimal.c b/strings/decimal.c
index f536bdb1d6b..0c1f03016e0 100644
--- a/strings/decimal.c
+++ b/strings/decimal.c
@@ -973,7 +973,7 @@ int double2decimal(double from, decimal_t *to)
{
/* TODO: fix it, when we'll have dtoa */
char s[400], *end;
- sprintf(s, "%f", from);
+ sprintf(s, "%.16G", from);
end= strend(s);
return string2decimal(s, to, &end);
}