Observed since 20 Oct, 17:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A Python package for converting numbers to text
aaqnumtowords library to convert numbers to words in both Persian and English languages.First, you need to install the aaqnumtowords library:
pip install aaqnumtowords
Here is an example of using the library to convert numbers to words in both Persian and English.
from aaqnumtowords import NumberToWords
try:
# Convert number to words in Persian
converter_fa = NumberToWords(language='fa')
print(converter_fa.number_to_words(123456789123456789123456789)) # Sample number in Persian
# Convert number to words in English
converter_en = NumberToWords(language='en')
print(converter_en.number_to_words(123456789123456789123456789)) # Sample number in English
except ValueError as e:
print(f"Error: {e}")
ValueError occurs, and an error message is displayed.صد و بیست و سه کوادریلیون چهارصد و پنجاه و شش تریلیون هفتصد و هشتاد و نه بیلیون یکصد و بیست و سه میلیون چهارصد و پنجاه و شش هزار هفتصد و هشتاد و نه one hundred twenty-three quadrillion four hundred fifty-six trillion seven hundred eighty-nine billion one hundred twenty-three million four hundred fifty-six thousand seven hundred eighty-nine
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.4 | 25 Feb 2025 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7b227f2082ca59222e5336769e0bd9537ed433ae74fccec3f988006a36d36dda