Skip to main content
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.

Metadata

Release files for round-to-n-significant-digits 0.1.5

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

Source distribution (sdist)

Source distribution for round-to-n-significant-digits 0.1.5
File Size Uploaded Provenance
round_to_n_significant_digits-0.1.5.tar.gz 3.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for round-to-n-significant-digits 0.1.5
File Interpreter ABI Platform
round_to_n_significant_digits-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / round_to_n_significant_digits-0.1.5.tar.gz

Download URL round_to_n_significant_digits-0.1.5.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ffd19641c47ede148de1454e7efbe8eb772b6d7ea2a3f621ba4ec2ff8f1f7e07
BLAKE2b-256 checksum
How to use checksums
16918ed73035845d50f346a4925936a576f525e2369bf8d90d026b78eba71476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Windows/10

Release files / round_to_n_significant_digits-0.1.5-py3-none-any.whl

Download URL round_to_n_significant_digits-0.1.5-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9462356a8c2a6bdd4185b311ae7efba061b054b9e166c53295721e74c34c24f
BLAKE2b-256 checksum
How to use checksums
e8eef95644ce167c7e4a46c93ad94c535898a27398624f294b8e61a9626be31b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Windows/10

Security for round-to-n-significant-digits 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files No provenance

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