mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08: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
3cba8999b3
commit
8f8a273c4d
@ -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 New Issue
Block a user