summaryrefslogtreecommitdiffstatshomepage
path: root/py/formatfloat.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-03-30 21:06:50 -0700
committerDave Hylands <dhylands@gmail.com>2014-04-01 01:17:33 -0700
commitbaf6f14deb567ab626c1b05213af346108f41700 (patch)
treedc531b159f6e5d3c3940e5fad752df9692e4ec60 /py/formatfloat.c
parente44d26ae0c1b5d248fa4db112cdeabe404944f3c (diff)
downloadmicropython-baf6f14deb567ab626c1b05213af346108f41700.tar.gz
micropython-baf6f14deb567ab626c1b05213af346108f41700.zip
Enhance str.format support
This adds support for almost everything (the comma isn't currently supported). The "unspecified" type with floats also doesn't behave exactly like python. Tested under unix with float and double Spot tested on stmhal
Diffstat (limited to 'py/formatfloat.c')
-rw-r--r--py/formatfloat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/formatfloat.c b/py/formatfloat.c
index 83aee1ef74..b1c62fa6d5 100644
--- a/py/formatfloat.c
+++ b/py/formatfloat.c
@@ -14,6 +14,7 @@
***********************************************************************/
#include <stdlib.h>
+#include <stdint.h>
#include "mpconfig.h"