Skip to main content

Parse numbers to Decimal

Project description

decimify

Parse numbers to Decimal

Some examples of large number presentations in all around the world:

Locale Large Number
Canadian (English and French) 4 294 967 295,000
Danish 4 294 967 295,000
Finnish 4 294 967 295,000
French 4 294 967 295,000
German 4 294 967.295,000
Italian 4.294.967.295,000
Norwegian 4.294.967.295,000
Spanish 4.294.967.295,000
Swedish 4 294 967 295,000
GB-English 4,294,967,295.00
US-English 4,294,967,295.00
Thai 4,294,967,295.00

Data taken from

Usage

from decimify import decimify

my_decimal = decimify('23 234.678,00')
my_decimal
# Decimal('23234678.00')

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

decimify-0.1.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

decimify-0.1.0-py3-none-any.whl (2.8 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