Skip to content

Commit 8f8a273

Browse files
author
Michael Meskes
committed
Made ecpglib write double with a precision of 15 digits.
Patch originally by Akira Kurosawa <kurosawa-akira@mxc.nes.nec.co.jp>.
1 parent 3cba899 commit 8f8a273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/ecpg/ecpglib/execute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ sprintf_double_value(char *ptr, double value, const char *delim)
478478
sprintf(ptr, "%s%s", "Infinity", delim);
479479
}
480480
else
481-
sprintf(ptr, "%.14g%s", value, delim);
481+
sprintf(ptr, "%.15g%s", value, delim);
482482
}
483483

484484
static void
@@ -494,7 +494,7 @@ sprintf_float_value(char *ptr, float value, const char *delim)
494494
sprintf(ptr, "%s%s", "Infinity", delim);
495495
}
496496
else
497-
sprintf(ptr, "%.14g%s", value, delim);
497+
sprintf(ptr, "%.15g%s", value, delim);
498498
}
499499

500500
bool

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy