I want to convert a string to float
bool numbFloat = float.TryParse(operatorsOperand[0], out float numFloat);
System.Console.WriteLine(numFloat);
return result;
For example: I have a string[0] where the number 5,4 is..when I convert it to float and then print it, 54 appears, it appears like that regardless of which conversion method I use, float.Parse, TryParse, Convert...
operatorsOperand? What isresult? Can you update this to a minimal reproducible example which can be independently tested to demonstrate the problem?