A python library to convert numbers to their catalan text representation. Decimals are managed as currency (1.5 is 'one and fifty')
Install it using pip:
pip install nombrestolletres
Import the library in your project and use it:
from nombrestolletres import number_to_letters
number_to_letters(11452915)
> 'onze milions quatre-cents cinquanta-dos mil nou-cents quinze'
1245
: 'mil dos-cents quaranta-cinc'-30
: 'menys trenta'0
: 'zero'23.5
: 'vint-i-tres amb cinquanta'