A simple package to round numbers and convert them to cents
Project description
Round and convert decimal number to cents
Install package
pip install redondear-dsalinas
Package usage
from redondear import redondear
number = redondear.round_number("2.5456756") # 2.55
cents = redondear.to_cents(number) # 255
decimals = redondear.to_decimals(cents) # 2.55
print(number, cents, decimals) # 2.55 255 2.55
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 redondear_dsalinas-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68e961718226c2ffab24daa4da7803429da50e7c1a7d9e80d88ed3cd20c3cc56 |
|
MD5 | 18e5d260c8d88b66ded958f2aa20b53d |
|
BLAKE2b-256 | 6519ec6ab92011ba4c3dfcfc7f530715123d8c6b76ecda7af37522a77d9c626b |