Skip to main content

This is a Python package to do exact real arithmetic, the following is an example using it:

from precreal import Real,intpow,pi

>>> 0.1+0.2==0.3 # Precision loss

False

>>> Real("0.1")+Real("0.2")==Real("0.3") # The Real class has NO precision loss when doing arithmetic

True

>>> intpow(Real(2),100)

1267650600228229401496703205376

>>> pi(7)
3.1415926

You can also run precreal_test, which tests three features of this package.

changelog:

  • 1.0.0 First version
  • 1.0.1 Fixed a setup.py bug
  • 1.0.2 Fixed the bug that pi computing results in 10 more digits

Metadata

Release files for precreal 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for precreal 1.0.3
File Size Uploaded
precreal-1.0.3.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for precreal 1.0.3
File Interpreter ABI Platform
precreal-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / precreal-1.0.3.tar.gz

Download URL precreal-1.0.3.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
917408e38604f0faf9aecad310b133929af5b9bf41b9281d8260810c21bd9bf3
BLAKE2b-256 checksum
How to use checksums
cf1050e2634340ccacccd027dde3e8cca45d905e34bc4fac98fadd9b54da4280
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Release files / precreal-1.0.3-py3-none-any.whl

Download URL precreal-1.0.3-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7139d1acf57e30ddefa80bdbd2abed0fdd1f280f46aafe8e8688adb9f83875b4
BLAKE2b-256 checksum
How to use checksums
7224c919fbc356e7f66302bad6a251bf41c3ce417b6383ffb192b3ebe49bfa41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page