summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float2int.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-31 02:20:57 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-31 02:21:19 +0200
commit2c75665445b555d0bf712566e7d8874e57c5ad81 (patch)
treeee9c4193b35cd6909af7b5414909e2ae5862aa49 /tests/float/float2int.py
parent8a2cc1c7e4c08aa83dc05a3b472caf1e71972d22 (diff)
downloadmicropython-2c75665445b555d0bf712566e7d8874e57c5ad81.tar.gz
micropython-2c75665445b555d0bf712566e7d8874e57c5ad81.zip
objstr: Fix %d-formatting of floats.
Diffstat (limited to 'tests/float/float2int.py')
-rw-r--r--tests/float/float2int.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/float/float2int.py b/tests/float/float2int.py
index 59d904e58a..ca2914c01a 100644
--- a/tests/float/float2int.py
+++ b/tests/float/float2int.py
@@ -3,3 +3,8 @@ print(int(1418774543.))
# TODO: General case with large exponent
#print(int(2.**100))
+
+print("%d" % 1418774543.)
+
+# TODO: General case with large exponent
+#print("%d" % 2.**100)