I have this line in my C# code:
s_ind = formula.LastIndexOfAny(operators, 1);
Where operators is a char array with elements, +, -, *, /, and ^
formula is a string equal to "182+0"
The expression is returning -1, so it is saying there is no plus sign in the string "182+0"
What is going wrong?