Skip to main content

UNKNOWN

Project description

Convert money decimal to text

Install

pip install money-decimal2text

Example

from money_decimal2text.script import decimal_to_text
import decimal

int_units = ((u'рубль', u'рубля', u'рублей'), 'm')
exp_units = ((u'копейка', u'копейки', u'копеек'), 'f')

print decimal_to_text(decimal.Decimal('302.19'), int_units=int_units, exp_units=exp_units)
# триста два рубля девятнадцать копеек

License

MIT

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

money-decimal2text-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file money-decimal2text-0.0.1.tar.gz.

File metadata

File hashes

Hashes for money-decimal2text-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ddd128194f2f65ef0354f341717d58dd5a7a959c48d29adbdc9205e2a86907ab
MD5 9d7b1671efe8dc19ea41932ba1e70fb8
BLAKE2b-256 c705383f56feedee3cb771a1990358add41ccb478bd15a72caba04703140e367

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