PYPI package with only 1 function to round float numbers
Project description
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
Links
Contacts
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file round_to_n_significant_digits-0.1.5.tar.gz
.
File metadata
- Download URL: round_to_n_significant_digits-0.1.5.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd19641c47ede148de1454e7efbe8eb772b6d7ea2a3f621ba4ec2ff8f1f7e07 |
|
MD5 | 20a5251fd600294d7f7feef99203056e |
|
BLAKE2b-256 | 16918ed73035845d50f346a4925936a576f525e2369bf8d90d026b78eba71476 |
File details
Details for the file round_to_n_significant_digits-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: round_to_n_significant_digits-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9462356a8c2a6bdd4185b311ae7efba061b054b9e166c53295721e74c34c24f |
|
MD5 | d838e7a0491bc14ddc2864fd2f48a538 |
|
BLAKE2b-256 | e8eef95644ce167c7e4a46c93ad94c535898a27398624f294b8e61a9626be31b |