diff options
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r-- | Modules/cPickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c index db72bf9..9af979b 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -922,7 +922,7 @@ save_float(Picklerobject *self, PyObject *args) { { char c_str[250]; c_str[0] = FLOAT; - sprintf(c_str + 1, "%f\n", x); + sprintf(c_str + 1, "%.17g\n", x); if ((*self->write_func)(self, c_str, strlen(c_str)) < 0) return -1; |