text2digits
text2digits copied to clipboard
Wrong conversion of large numbers
Hi, for large numbers, the outputs are incorrect. Here are some examples:
>>> from text2digits import text2digits
>>> t2d = text2digits.Text2Digits(add_ordinal_ending=True)
>>> t2d.convert('six hundred forty nine million')
'49000600'
>>> t2d.convert('six hundred forty nine billion')
'49000000600'
>>> t2d.convert('six hundred seventy one thousand')
'71600'
This issue occurs when text2digits is installed from pip. It is fixed by installing from source. @ShailChoksi Is there going to be an update on the pip version soon?