Thank you for this tool. However, I found a quite strange bug on Android. I use Unity 2019.1.4f1 and I test on a Samsung Galaxy S6.
Formula A: 10*1,1^0
Formula B: 10*1,1^1
Code:
string formulaA = "10*1,1^0";
string formulaB = "10*1,1^1";
ExpressionSolver solver = new ExpressionSolver();
Debug.Log("A = " + solver.EvaluateExpression(formulaA));
Debug.Log("B = " + solver.EvaluateExpression(formulaB));
In the Unity Editor:
A = 10
B = 11
On Android:
A = 10
B = 110
Moreover, you will notice I used "," char instead of "." char. The "." char is simply not accepted, I don't know why.
Thank you for this tool. However, I found a quite strange bug on Android. I use Unity 2019.1.4f1 and I test on a Samsung Galaxy S6.
Formula A:
10*1,1^0Formula B:
10*1,1^1Code:
In the Unity Editor:
A = 10
B = 11
On Android:
A = 10
B = 110
Moreover, you will notice I used "," char instead of "." char. The "." char is simply not accepted, I don't know why.