From 77a7a57f7fb8f9c1fc6449938f459d17cc2cfc80 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Mon, 18 Jul 2011 16:25:27 +0200 Subject: [PATCH] Made ecpglib write double with a precision of 15 digits. Patch originally by Akira Kurosawa . --- src/interfaces/ecpg/ecpglib/execute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index 72eed58746..1019bfe620 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 -- 2.40.0