Skip to content

A python module for the calculations of big numbers, including integers and floats.

Notifications You must be signed in to change notification settings

GLanguage/Big_Numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Big_Numbers

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.

BigInt

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")

Errors

ZeroDivisionError : When you are trying to divide a number by 0.

About

A python module for the calculations of big numbers, including integers and floats.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages