No project description provided
Project description
NumWords module converts numbers from their numerical form to their international semantic form. Current input limit is 1066-1.
Usage:
Convert integers
from numwords import NumWords
NumWords.convert(12345)
>>> "Twelve Thousand Three Hundred Fourty Five"
Convert numbers with decimals
NumWords.convert(12345.6789)
>>> "Twelve Thousand Three Hundred Fourty Five Point Six Seven Eight Nine"
NumWords.convert("12345.6789")
>>> "Twelve Thousand Three Hundred Fourty Five Point Six Seven Eight Nine"
NumWords.convert(12345.0)
>>> "Twelve Thousand Three Hundred Fourty Five"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
numwords-2.0.0.tar.gz
(3.9 kB
view hashes)