summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/string_format.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-22 15:42:09 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-22 17:54:05 +0200
commit9aaccd4735d60798963212d72989a9b9d852fc6d (patch)
treefe152001fb986252b64989ae50ea8e84c2bb1ed6 /tests/float/string_format.py
parent1818da2ef3decbbed57b513480131853a3f2dadc (diff)
downloadmicropython-9aaccd4735d60798963212d72989a9b9d852fc6d.tar.gz
micropython-9aaccd4735d60798963212d72989a9b9d852fc6d.zip
py/formatfloat: Convert to fully portable implementation.
This takes previous IEEE-754 single precision float implementation, and converts it to fully portable parametrizable implementation using C99 functions like signbit(), isnan(), isinf(). As long as those functions are available (they can be defined in adhoc manner of course), and compiler can perform standard arithmetic and comparison operations on a float type, this implementation will work with any underlying float type (including types whose mantissa is larger than available intergral integer type).
Diffstat (limited to 'tests/float/string_format.py')
0 files changed, 0 insertions, 0 deletions