Arbitrary-Precision Python Integers
Project description
ap_int
Python package for Arbitrary-Precision arithmetic.
Install
Execute python3 -m pip install ap_int
.
Contributing
Testing
- Clone the Github repo.
- Make sure you're at the source directory.
- Execute
python3 test.py
.
Documentation
Classes
Arbitrary-Precision integer class.
Usage:
>>> a, b = Integer(114514), Integer('1919810')
>>> a * b
Integer(219845122340)
>>> b // a
Integer(16)
>>> a - b
Integer(-1805296)
>>> a ** b > b ** a
True
>>> a >= b
False
>>> a ^ b
Integer(1897488)
>>> pow(a, b, 10)
Integer(6)
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
ap_int-0.0.1.tar.gz
(15.8 kB
view details)
Built Distribution
ap_int-0.0.1-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file ap_int-0.0.1.tar.gz
.
File metadata
- Download URL: ap_int-0.0.1.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fda5c2d4644439f4a7161e1bb0746a2b63507ff22bd98aa025a120b4b08d11d6 |
|
MD5 | cec7eb6b57abc388a5aaadddb2ab4b7c |
|
BLAKE2b-256 | be9c16a9fbfaaa9142b7b121cc8d1e42bff4d60725b254664ad70b02c7856e5d |
File details
Details for the file ap_int-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ap_int-0.0.1-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfcb98f8f5ad81bbb4bb142099b3abe6c91f721ee68e16ca98460ff02835889a |
|
MD5 | 9da91b732598c63445d1250a0f8c8d1f |
|
BLAKE2b-256 | b128d05340aed24d56413c77d185ca3708a43713312e1e4cb4912b3efd50caf4 |