Commit 8f8a273c authored by Michael Meskes's avatar Michael Meskes

Made ecpglib write double with a precision of 15 digits.

Patch originally by Akira Kurosawa <kurosawa-akira@mxc.nes.nec.co.jp>.
parent 3cba8999
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment