Round Number
Project description
My Package
A sample Python package.
Installation
You can install the package using pip:
pip install round_utils
Usage
Here is an example of how to use the package:
from roundr import round_utils
print(round_utils(32.56, 1)) # 32.6
print(round_utils(349.5)) # 350
print(round_utils(6.54, 1)) # 6.5
print(round_utils(6.54)) # 7.0
print(round_utils('6.55')) # 7.0
print(round_utils(6.56, '1')) # 6.6
print(round_utils(6, 'e')) # "Invalid input, try again!"
print(round_utils('r', 3)) # "Invalid input, try again!"
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
roundr-1.2.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
roundr-1.2-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file roundr-1.2.tar.gz.
File metadata
- Download URL: roundr-1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3efe49cbac4392945c17540d391d289ff90d4c4bfce90026344afb0b23db23db
|
|
| MD5 |
0c59641f975ff647da5bd367ca4aec50
|
|
| BLAKE2b-256 |
8178a78ace8242004955f75ce344fee688cb32d3710c7840b537e1ca171323b5
|
File details
Details for the file roundr-1.2-py3-none-any.whl.
File metadata
- Download URL: roundr-1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
552f03026214e1c8c426f6f96e107a3b037bd32d47cffac72ae5d1f8c66e7099
|
|
| MD5 |
13ef6c559156e8e19506e6c29c832096
|
|
| BLAKE2b-256 |
e5de06ffa256004efb3fed0b0214d612c752674d668535f74c9c205134025b12
|