Hello guys,
Is there any way to perform a calculation with the elements in a string
for instance, i have "2x10/20" it can be any other calculus, like "(234/403)-20*50" but they are string
can I somehow convert them to numbers to perform the operations ?
Steve: Could you please give an example where it won't work. I am not sure I understand what you are saying. I was going by the examples that Pedro wrote
Thanks
It's the calculation that is the problem. Pedro want's to be able to perform a calculation that is stored in a string which presumably is read from elsewhere. i.e.
B4X:
Dim CalcStr as String = "(234/403)-20*50"
Dim s As Double = $"${NumberFormat(CalcStr, 1,4)}"$