Add, Multiply, Mod, Divide Large number
Project description
Infinite Precision
Adding big big number!!
Usage
from infp import BigNumber
num1 = BigNumber("1648976548.65498")
num2 = BigNumber("-4564984945.654")
sum = num1 + num2 # -2916008396.99902
print(sum)
num1 = BigNumber("10")
num2 = BigNumber("10")
sub = num1 - num2
print(sub) # 0
ans = BigNumber("132") / BigNumber("132")
print(ans) # 1
Unit Test
- Install pytest if haven't
pip install pytest
- Run test command
pytest
Run the main program example
python main.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
infp-0.0.3.tar.gz
(3.9 kB
view details)
Built Distribution
infp-0.0.3-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file infp-0.0.3.tar.gz
.
File metadata
- Download URL: infp-0.0.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8946b60aad0b85e088dfcba46affa51bd32c2b043e44e224a433b17c81b1e942 |
|
MD5 | 1a48d4bffdd912a41ed8617bc3791775 |
|
BLAKE2b-256 | 27d37187a9e1b1b8690781b4c2699abb29774a1baca33d3af396f0472d94c7d8 |
File details
Details for the file infp-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: infp-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 350856d7595196aade5d25d7568cb1dd0cdea192067a2e45059eff9e187f2687 |
|
MD5 | 87f91b0d15625ccca39d271b372f85f3 |
|
BLAKE2b-256 | d22a0c1957f20ae00f4dcde5b6fb6237b8762476665386c56298bd66dc3e30b1 |