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)