Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big numbers for Portuguese and Spanish are failed #501

Open
Maksolo27 opened this issue Feb 28, 2023 · 0 comments · May be fixed by #600
Open

Big numbers for Portuguese and Spanish are failed #501

Maksolo27 opened this issue Feb 28, 2023 · 0 comments · May be fixed by #600

Comments

@Maksolo27
Copy link

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

@elenae098 elenae098 linked a pull request Dec 4, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant