From a81539db25d443826e5247fefda8ae73bad64056 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 1 Oct 2015 18:49:37 +0100 Subject: tests: Add further tests for mpz code. --- tests/float/int_big_float.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/float') 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)) -- cgit v1.2.3