Skip to main content

PYPI package with only 1 function to round float numbers

Project description

GitHub last commit GitHub license<space><space> PyPI PyPI - Python Version

Overview.

round_to_n_significant_digits is a one function PYPI package made only with one goal to round float numbers in python to asked number of signifacant digits

import round_to_n_significant_digits

round_to_n_significant_digits.rtnsd(0.23234, 2)  # 0.23
round_to_n_significant_digits.rtnsd(0.235, 2)  # 0.24
round_to_n_significant_digits.rtnsd(105.3, 1)  # 100
round_to_n_significant_digits.rtnsd(125.3, 2)  # 130

Installation via pip:

pip install round_to_n_significant_digits

Contacts

License

This project is licensed under the MIT License.

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

round_to_n_significant_digits-0.1.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

round_to_n_significant_digits-0.1.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file round_to_n_significant_digits-0.1.5.tar.gz.

File metadata

File hashes

Hashes for round_to_n_significant_digits-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ffd19641c47ede148de1454e7efbe8eb772b6d7ea2a3f621ba4ec2ff8f1f7e07
MD5 20a5251fd600294d7f7feef99203056e
BLAKE2b-256 16918ed73035845d50f346a4925936a576f525e2369bf8d90d026b78eba71476

See more details on using hashes here.

File details

Details for the file round_to_n_significant_digits-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for round_to_n_significant_digits-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f9462356a8c2a6bdd4185b311ae7efba061b054b9e166c53295721e74c34c24f
MD5 d838e7a0491bc14ddc2864fd2f48a538
BLAKE2b-256 e8eef95644ce167c7e4a46c93ad94c535898a27398624f294b8e61a9626be31b

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