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
num2words.num2words(11111111111111111111111111111, lang="pt")
==>Well formed result
Actual Behaviour
num2words.num2words(11111111111111111111111111111, lang="pt")
==> File "<stdin>", line 1, in <module> File "/home/maxim/.local/lib/python3.10/site-packages/num2words/__init__.py", line 98, in num2words return getattr(converter, 'to_{}'.format(to))(number, **kwargs) File "/home/maxim/.local/lib/python3.10/site-packages/num2words/lang_PT.py", line 149, in to_cardinal result = super(Num2Word_PT, self).to_cardinal(value) File "/home/maxim/.local/lib/python3.10/site-packages/num2words/base.py", line 115, in to_cardinal raise OverflowError(self.errmsg_toobig % (value, self.MAXVAL)) OverflowError: abs(11111111111111111111111111111) must be less than 1000000000000000000000000000.
Steps to reproduce
When trying to convert big numbers to pt/es аn error arises
The text was updated successfully, but these errors were encountered:
Expected Behaviour
num2words.num2words(11111111111111111111111111111, lang="pt")
==>Well formed result
Actual Behaviour
num2words.num2words(11111111111111111111111111111, lang="pt")
==>
File "<stdin>", line 1, in <module> File "/home/maxim/.local/lib/python3.10/site-packages/num2words/__init__.py", line 98, in num2words return getattr(converter, 'to_{}'.format(to))(number, **kwargs) File "/home/maxim/.local/lib/python3.10/site-packages/num2words/lang_PT.py", line 149, in to_cardinal result = super(Num2Word_PT, self).to_cardinal(value) File "/home/maxim/.local/lib/python3.10/site-packages/num2words/base.py", line 115, in to_cardinal raise OverflowError(self.errmsg_toobig % (value, self.MAXVAL)) OverflowError: abs(11111111111111111111111111111) must be less than 1000000000000000000000000000.
Steps to reproduce
When trying to convert big numbers to pt/es аn error arises
The text was updated successfully, but these errors were encountered: