diff options
author | holyfoot@mysql.com <> | 2005-11-10 16:32:49 +0400 |
---|---|---|
committer | holyfoot@mysql.com <> | 2005-11-10 16:32:49 +0400 |
commit | bbc26a63b288269b994c024438c947a90b8df862 (patch) | |
tree | b0424cb89f3cd03fe7ca55f4e5bcd22960984114 /strings/decimal.c | |
parent | b318ed1768e98af3aa8a680ade343533f9323bf6 (diff) | |
parent | c5313e8d4f60dac409a7b9a70eb347fcbaedb5e1 (diff) | |
download | mariadb-git-bbc26a63b288269b994c024438c947a90b8df862.tar.gz |
merging
Diffstat (limited to 'strings/decimal.c')
-rw-r--r-- | strings/decimal.c | 2 |
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); } |