PYPI package with only 1 function to round float numbers to the number of significant digits
Project description
Overview.
pyround is a one function PYPI package made only with one goal to round float numbers in python to asked number of signifacant digits
import pyround
pyround.pyround(0.23234, 2) # 0.23
pyround.pyround(0.235, 2) # 0.24
pyround.pyround(105.3, 1) # 100
pyround.pyround(125.3, 2) # 130
Installation via pip:
pip install pyround
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
pyround-0.1.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file pyround-0.1.0.tar.gz
.
File metadata
- Download URL: pyround-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4188e081e94661cf1a9b4d5496666a91a88b51318ab9c31cf7862af66d2a9aca |
|
MD5 | feb8cb6ae3433dd3e906643f3ae5d536 |
|
BLAKE2b-256 | 8c190c4e24b6758a8a6d1c4071774da02e460374b4ccad5ca7f10f71f91df073 |
File details
Details for the file pyround-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyround-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45e6bda1216ac611c40306645e1c34dc16993928998a5bf0e25027fdb3c1cb1c |
|
MD5 | 4cd2cdf61091eec312ce4ecf058d0d67 |
|
BLAKE2b-256 | 2ac9b5e54e066955ce5a110e90013ba5d8495e94e25926d201590d48176b871e |