From 8594ce228011e6264f59ade4ff8a7f2bfa90a649 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 13 Sep 2014 18:43:09 +0100 Subject: py: Implement divmod, % and proper // for floating point. Tested and working on unix and pyboard. --- tests/float/modulo.py | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 tests/float/modulo.py (limited to 'tests/float') diff --git a/tests/float/modulo.py b/tests/float/modulo.py deleted file mode 100644 index 911268513..000000000 --- a/tests/float/modulo.py +++ /dev/null @@ -1,14 +0,0 @@ -# check modulo matches python definition -# TODO we currenty fail with this -if False: - print(1.23456 % 0.7) - print(-1.23456 % 0.7) - print(1.23456 % -0.7) - print(-1.23456 % -0.7) - - a = 1.23456 - b = 0.7 - print(a % b) - print(a % -b) - print(-a % b) - print(-a % -b) -- cgit v1.2.3