mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
tests: Add further tests for mpz code.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user