text2digits icon indicating copy to clipboard operation
text2digits copied to clipboard

Wrong conversion of large numbers

Open Nithin-Holla opened this issue 3 years ago • 1 comments

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'

Nithin-Holla avatar Jul 22 '21 14:07 Nithin-Holla

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?

Nithin-Holla avatar Jul 26 '21 09:07 Nithin-Holla