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) # 105
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
Close
Hashes for round_to_n_significant_digits-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a824e2c76bc8ac2baef76dc7b5bb9bc6a863520ef9234ce4bb385d877348c59 |
|
MD5 | 127b0202d207797d3e834fe9fad4f66f |
|
BLAKE2b-256 | 02f90a518196f75b5dcf0d9f3677fed7c65024723b35b4b342757cd8b0587abc |
Close
Hashes for round_to_n_significant_digits-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b5bdd4691587ef62a5978df32827a663e18e4f3553a2c168b0bac25902f30d |
|
MD5 | a1de976d1d33d6031b01baf07f7bafe1 |
|
BLAKE2b-256 | 1fca069676edf0349424d14dbb8c9b84ee2513e9aa065f609583c9225fdf5ce6 |