Open xcaptain opened 2 weeks ago
BigInteger
will be supported by Parlot parser in the upcoming release, then we can implement it's support in NCalc
Yes. you're right
I tried the new Parlot version in my local dev env, the BigInteger
worked, hope to see a new version soon. Also I think as a math calculator, it's no need to handle overflow, because integer space is infinite, convert to BigInteger is more useful.
The integer overflow can be useful in some cases. BigInteger
support can be added via ExpressionOptions
without any breaking changes.
For example:
99999999999999999999999999*888888888888888888888888888888888888888
is a simple expression but will throw an Exception when eval it.