mirror of
https://github.com/postgres/postgres.git
synced 2025-06-08 22:02:03 +03:00
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:
parent
548d197ca7
commit
40922b69c4
@ -478,7 +478,7 @@ sprintf_double_value(char *ptr, double value, const char *delim)
|
|||||||
sprintf(ptr, "%s%s", "Infinity", delim);
|
sprintf(ptr, "%s%s", "Infinity", delim);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sprintf(ptr, "%.14g%s", value, delim);
|
sprintf(ptr, "%.15g%s", value, delim);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -494,7 +494,7 @@ sprintf_float_value(char *ptr, float value, const char *delim)
|
|||||||
sprintf(ptr, "%s%s", "Infinity", delim);
|
sprintf(ptr, "%s%s", "Infinity", delim);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sprintf(ptr, "%.14g%s", value, delim);
|
sprintf(ptr, "%.15g%s", value, delim);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user