reduce precision to avoid false rounding

This commit is contained in:
Holger Vogt 2021-01-17 23:01:37 +01:00
parent c9eeb0ceea
commit c891bf846c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}