1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
strings/decimal.c:
  Auto merged
This commit is contained in:
unknown
2005-11-10 16:32:49 +04:00
3 changed files with 446 additions and 1 deletions

View File

@ -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);
}