Closed faizal-karim closed 9 months ago
@faizal-karim I think the issue here is that ^
has a the same precedence as -
so the expression is evaluated as:
(0.341 * 8000.0) / ((1 - (1 + 0.341)) ^ -84)
I can fix this quickly by hard-coding a more appropriate precedence. In the longer term I really need to expose a way to set precedence for custom operators.
@faizal-karim this is fixed in the latest version (0.13.8)
@nicklockwood what about android?
@jaydeepbhayani what about it?
@nicklockwood do you have same library in android?
@jaydeepbhayani no. I'm not sure what the state of Swift on Android is at the moment. In principle it might work, but it's not something I can help with.
I have an expression like this -> *"(0.341 8000.0) / (1 - (1 + 0.341) ^ -84)"** , I used below code but giving wrong answer.
Expected result - "109.71908469357446" Actual result - "1.538906384258725e-36"
Can someone please correct me?