diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-10-01 18:49:37 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-10-01 18:49:37 +0100 |
| commit | a81539db25d443826e5247fefda8ae73bad64056 (patch) | |
| tree | a4ff682df829cd98f1e46206d3bc3e08a560526b /tests/float/int_big_float.py | |
| parent | 2f4e8511cd602a6110b3636c316b5cac21181bf3 (diff) | |
tests: Add further tests for mpz code.
Diffstat (limited to 'tests/float/int_big_float.py')
| -rw-r--r-- | tests/float/int_big_float.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/float/int_big_float.py b/tests/float/int_big_float.py index 5b8aaa878..2c404189c 100644 --- a/tests/float/int_big_float.py +++ b/tests/float/int_big_float.py @@ -5,6 +5,9 @@ i = 1 << 65 # convert bignum to float on rhs print("%.5g" % (2.0 * i)) +# negative bignum as float +print("%.5g" % float(-i)) + # this should convert to float print("%.5g" % (i / 5)) |
