Made ecpglib write double with a precision of 15 digits.

Patch originally by Akira Kurosawa <kurosawa-akira@mxc.nes.nec.co.jp>.
This commit is contained in:
Michael Meskes 2011-07-18 16:25:27 +02:00
parent 3cba8999b3
commit 8f8a273c4d

View File

@ -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