fasseg / exp4j

A tiny math expression evaluator for the Java programming language
http://www.objecthunter.net/exp4j/
Apache License 2.0
495 stars 163 forks source link

Is it possible to detect overflow in return values? #116

Closed kdkasad closed 5 months ago

kdkasad commented 3 years ago

For expressions which evaluate to very large numbers, it's possible that an overflow will occur, so the return value from Expression.evaluate() will be wrong. Is there any way for exp4j to detect an overflow, so the calling program can tell when it has an incorrect value?

HenrySanchez16 commented 3 years ago

Yo puedo trabajar?