Skip to content

[BUG] On Android, some results are 10 times higher #2

Description

@Ynk33

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions