diff options
| author | Michael Meskes | 2011-07-18 14:25:27 +0000 |
|---|---|---|
| committer | Michael Meskes | 2011-07-18 14:29:59 +0000 |
| commit | 77a7a57f7fb8f9c1fc6449938f459d17cc2cfc80 (patch) | |
| tree | bdfeb7b0ce4e93d46f88723c13169ab87e71fe15 | |
| parent | d662e3970d265a9edc645d2755cf427ed33498c1 (diff) | |
Made ecpglib write double with a precision of 15 digits.
Patch originally by Akira Kurosawa <kurosawa-akira@mxc.nes.nec.co.jp>.
| -rw-r--r-- | src/interfaces/ecpg/ecpglib/execute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index 72eed587461..1019bfe6201 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -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 |
