summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/builtin_float_round.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-24 10:55:50 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-24 11:00:45 +1100
commitc236ebfea705679078f906da484a3ed0bffd32e2 (patch)
treeb90639b14e0ac8e6b64c28656c2b39799dbc7fa8 /tests/float/builtin_float_round.py
parent125eae1ba3c59b882fc95c82c95dccd2d93ceaa1 (diff)
downloadmicropython-c236ebfea705679078f906da484a3ed0bffd32e2.tar.gz
micropython-c236ebfea705679078f906da484a3ed0bffd32e2.zip
py/modbuiltins: Allow round() to return a big int if necessary.
Previous to this patch, if the result of the round function overflowed a small int, or was inf or nan, then a garbage value was returned. With this patch the correct big-int is returned if necessary and exceptions are raised for inf or nan.
Diffstat (limited to 'tests/float/builtin_float_round.py')
0 files changed, 0 insertions, 0 deletions