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

🐛 Exponential operator(^) does not throw exception about overflow #13

Open
seungukson opened this issue Jan 26, 2023 · 0 comments
Open

Comments

@seungukson
Copy link

First of all, thanks for your code.
I found a bug, and would like to report it

It's about exponential(^) operation between two bigDecimal number.
I think that a calculation which expected to take a long time to calculate must throw exception about overflow.
e.g.
Expressions().eval("34^3.0E+24")
Expressions().eval("34^3.0E+2451223111")

The code above throw exception about overflow.
But below is not
34^3.0E+2451223

I think it has to have some validation about each power calculation.
Thank you

@seungukson seungukson changed the title Exponential operator(^) does not throw exception about overflow 🐛 Exponential operator(^) does not throw exception about overflow Jan 26, 2023
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

No branches or pull requests

1 participant