Skip to main content

Arbitrary-Precision Python Integers

Project description

ap_int

Python package for Arbitrary-Precision arithmetic.

Install

Execute python3 -m pip install ap_int.

Contributing

Testing

  1. Clone the Github repo.
  2. Make sure you're at the source directory.
  3. 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


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)

Uploaded Source

Built Distribution

ap_int-0.0.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

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

Hashes for ap_int-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fda5c2d4644439f4a7161e1bb0746a2b63507ff22bd98aa025a120b4b08d11d6
MD5 cec7eb6b57abc388a5aaadddb2ab4b7c
BLAKE2b-256 be9c16a9fbfaaa9142b7b121cc8d1e42bff4d60725b254664ad70b02c7856e5d

See more details on using hashes here.

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

Hashes for ap_int-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfcb98f8f5ad81bbb4bb142099b3abe6c91f721ee68e16ca98460ff02835889a
MD5 9da91b732598c63445d1250a0f8c8d1f
BLAKE2b-256 b128d05340aed24d56413c77d185ca3708a43713312e1e4cb4912b3efd50caf4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page