summaryrefslogtreecommitdiff
path: root/py/objfloat.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-18 23:35:24 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-18 23:35:24 +0100
commit561f83c9cf62b6470637dfbd51471db63fe5c28d (patch)
tree3b411eff835bec291095c823655698ee43c8849e /py/objfloat.c
parent38ae014e4258811d1612f9e140a35f8f9aa0ddb8 (diff)
parent0fc4775cd6e13360bfd622602b50de900dac6617 (diff)
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'py/objfloat.c')
-rw-r--r--py/objfloat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfloat.c b/py/objfloat.c
index 804101978..924916057 100644
--- a/py/objfloat.c
+++ b/py/objfloat.c
@@ -30,7 +30,7 @@ STATIC void float_print(void (*print)(void *env, const char *fmt, ...), void *en
}
#else
char buf[32];
- sprintf(buf, "%.8g", (double) o->value);
+ sprintf(buf, "%.17g", (double) o->value);
print(env, buf);
if (strchr(buf, '.') == NULL) {
// Python floats always have decimal point