Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redondear-dsalinas-0.0.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

redondear_dsalinas-0.0.3-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page