Skip to main content

ASqrtC is a fast square root calculator with 100% accuracy. It delivers exact results to any specified number of decimal places. ASqrtC outperforms Python’s built-in math and decimal modules in speed when calculating less then ~7500 decimal places.

Project description

Accurate-Sqrt-Calculator (ASqrtC)

ASqrtC is a fast and accurate square root calculator with no size limit. It delivers exact results to any specified number of decimal places. It is 100% accurate. ASqrtC outperforms Python’s built-in math and decimal modules in speed when calculating less then ~7500 decimal places.

How to Use

  1. Install the package using pip.
  2. Import it in your script.
  3. Call ASqrtC.sqrt(number, decimal_places) — replacing number with the value you want the square root of, and decimal_places with how many digits after the decimal you'd like.
  4. That’s it! It’s that easy.

If You Receive An Error Like:

ValueError: Exceeds the limit (4300 digits) for integer string conversion: value has 4301 digits

Then Add The Following Code to the Top of Your Project:

import sys
sys.set_int_max_str_digits(0)

This removes Python’s built-in limit on large integer string conversions.

Note: This project does not support negative, imaginary, or complex numbers.

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

asqrtc-2.9.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asqrtc-2.9.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file asqrtc-2.9.1.tar.gz.

File metadata

  • Download URL: asqrtc-2.9.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for asqrtc-2.9.1.tar.gz
Algorithm Hash digest
SHA256 97b5b7e7103a9ef79bc19d02ad7b63a006b16479a71f387a0298ac0d7c72444a
MD5 7d9a0990e9f08f83e24fe341021a86a5
BLAKE2b-256 884af0eac2c15865d39a34cbe44e5f72ce45d24a7b30f00af163d89b074b8bd6

See more details on using hashes here.

File details

Details for the file asqrtc-2.9.1-py3-none-any.whl.

File metadata

  • Download URL: asqrtc-2.9.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for asqrtc-2.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e64f844b413501ebd5c5172597669f0c64b0102ede7401aa525da000a67852a
MD5 83356b31e7946ea97c8b6d4a955f829a
BLAKE2b-256 2ead965ffbac3edfcead978ee55515ec6ec9eb0cd57fa854b54768a11e4a681f

See more details on using hashes here.

Supported by

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