mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Made ecpglib write double with a precision of 15 digits.
Patch originally by Akira Kurosawa <kurosawa-akira@mxc.nes.nec.co.jp>.
This commit is contained in:
parent
d662e3970d
commit
77a7a57f7f
1 changed files with 2 additions and 2 deletions
|
|
@ -478,7 +478,7 @@ sprintf_double_value(char *ptr, double value, const char *delim)
|
|||
sprintf(ptr, "%s%s", "Infinity", delim);
|
||||
}
|
||||
else
|
||||
sprintf(ptr, "%.14g%s", value, delim);
|
||||
sprintf(ptr, "%.15g%s", value, delim);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -494,7 +494,7 @@ sprintf_float_value(char *ptr, float value, const char *delim)
|
|||
sprintf(ptr, "%s%s", "Infinity", delim);
|
||||
}
|
||||
else
|
||||
sprintf(ptr, "%.14g%s", value, delim);
|
||||
sprintf(ptr, "%.15g%s", value, delim);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Reference in a new issue