A python module for the calculations of big numbers, including integers and floats.
To use the module, you should download Big_Numbers.py
and enter: import Big_Numbers
in the python shell.
A class for big integers.
Use BigInt(str)
to creat a BigInt object.
For instance:
a = BigInt("-1234567890")
Now, the following calculations are available:
len(a) # including the symbol '-'
+a
-a
abs(a)
a < b
a > b
a == b
a != b
a <= b
a >= b
a + b
a - b
a * b
a // b
a % b
Wait for more!
Notes: Two constants are available:
ZERO = BigInt("0")
ONE = BigInt("1")
ZeroDivisionError
: When you are trying to divide a number by 0.