Skip to main content

Currency Convert

Project description

Currency Convert

Installation

pip install monetary

Usage

import monetary

# Exchange Cent & Dollar
monetary.cent(dollar, rate=100, cast_func=int)
monetary.dollar(cent, rate=100, cast_func=float, ndigits=None)

# Mul & Div
monetary.mul(multiplicand, multiplicator, cast_func=float)
monetary.div(dividend, divisor, cast_func=float, ndigits=None)

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

monetary-1.0.3.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

monetary-1.0.3-py2.py3-none-any.whl (2.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file monetary-1.0.3.tar.gz.

File metadata

  • Download URL: monetary-1.0.3.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+

File hashes

Hashes for monetary-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1d5c894fc6138289beec4666e78735f101a44273b24832d0b15179f0aae344d0
MD5 67e658cf1d78760736ec4d8d4a183d1b
BLAKE2b-256 93293f0e2480830d9e46690f85c718fa95ccf5a1e7ea5c3eed9813e723d94ad2

See more details on using hashes here.

File details

Details for the file monetary-1.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: monetary-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+

File hashes

Hashes for monetary-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d8d120d697151d8a06187601d19c56648312145a7aeb34d43daefc39598cdc7e
MD5 beb1e85adcda2d9435ab49851c08eaa1
BLAKE2b-256 f069cb31819df66ca753edc3c453bad355c91a8d6ad75150484da6ea76b6c624

See more details on using hashes here.

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