Converting string variable to double variable value
-
So I'm getting a text description (string) from objects on chart. The text is basically EUR: 3.2, for example. But I need to read the 3.2 value, specifically. I assume it needs to be converted to a double variable but nothing is working. I tried custom code too like "pairvalue = StringToDouble(text);" but comment keeps reading "0" for numerical pairvalue variable. Anyone can explain how this can be done?
-
@kizerage212 Never used string to value, but using this
variable=(StringSubstr (variable/constant, 6, 9));
6, 9 being the start and end in string, double for your variable will give you the digits.