A part of the goal in my app is to receive a mathematical expression (e.g. 1 + 1
) by string, and convert it to a BigInteger
.
My goal is to have an equivalent to:
BigInteger result = new BigInteger("1+1");
// This will throw an exception of invalid BigInteger
Also, ScriptEngineManager
class isn't available for Android.
I still cannot find a way to achieve my goal.
Thanks a lot for helping!