summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/int_big_float.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/int_big_float.py')
-rw-r--r--tests/float/int_big_float.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/float/int_big_float.py b/tests/float/int_big_float.py
index 5b8aaa8782..2c404189cb 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))