You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lang = en_US, Currency = USD
Function used -> num2words(100020, to='currency', currency='USD', lang='en_US')
100020 -> 'one hundred thousand dollars'
Actual Behaviour
lang = en_US, Currency = USD
Function used -> num2words(100020, to='currency', currency='USD', lang='en_US')
100020 -> 'one thousand dollars, twenty cents'
Mentioned above
Steps to reproduce
Steps are shown above
The text was updated successfully, but these errors were encountered:
bwala-eightfold
changed the title
Not properly converting number to text
Not properly converting number to text (100020 -> one thousand dollars, twenty cents)
Dec 26, 2023
It looks like integers are being shifted left by two decimal places. It seems to be an undocumented feature. For floats (and decimals) there's no this behavior.
Expected Behaviour
lang = en_US, Currency = USD
Function used -> num2words(100020, to='currency', currency='USD', lang='en_US')
100020 -> 'one hundred thousand dollars'
Actual Behaviour
lang = en_US, Currency = USD
Function used -> num2words(100020, to='currency', currency='USD', lang='en_US')
100020 -> 'one thousand dollars, twenty cents'
Mentioned above
Steps to reproduce
Steps are shown above
The text was updated successfully, but these errors were encountered: