diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-03-30 21:06:50 -0700 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-04-01 01:17:33 -0700 |
commit | baf6f14deb567ab626c1b05213af346108f41700 (patch) | |
tree | dc531b159f6e5d3c3940e5fad752df9692e4ec60 /py/formatfloat.c | |
parent | e44d26ae0c1b5d248fa4db112cdeabe404944f3c (diff) | |
download | micropython-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.c | 1 |
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" |