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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file redondear-dsalinas-0.0.3.tar.gz.

File metadata

  • Download URL: redondear-dsalinas-0.0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for redondear-dsalinas-0.0.3.tar.gz
Algorithm Hash digest
SHA256 02a93cdf27e29f9bcbf5dd0bf2f4ce20742598fb3a81ab22ff8d47970f5da3b6
MD5 e61348853cc3515889e402c3cab551ec
BLAKE2b-256 1b9049df70ab0b19418956cc061bbba1395a7c9ccf6e483f0d9d25805bd7b03b

See more details on using hashes here.

File details

Details for the file redondear_dsalinas-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: redondear_dsalinas-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for redondear_dsalinas-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 68e961718226c2ffab24daa4da7803429da50e7c1a7d9e80d88ed3cd20c3cc56
MD5 18e5d260c8d88b66ded958f2aa20b53d
BLAKE2b-256 6519ec6ab92011ba4c3dfcfc7f530715123d8c6b76ecda7af37522a77d9c626b

See more details on using hashes here.

Supported by

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