reduce precision to avoid false rounding
This commit is contained in:
parent
c9eeb0ceea
commit
c891bf846c
|
|
@ -1063,7 +1063,7 @@ static void
|
|||
double_to_string(DSTRINGPTR qstr_p, double value)
|
||||
{
|
||||
char buf[ACT_CHARACTS + 1];
|
||||
if (snprintf(buf, sizeof(buf), "% 25.17e", value) != ACT_CHARACTS) {
|
||||
if (snprintf(buf, sizeof(buf), "% 23.15e ", value) != ACT_CHARACTS) {
|
||||
fprintf(stderr, "ERROR: xpressn.c, %s(%d)\n", __FUNCTION__, __LINE__);
|
||||
controlled_exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue