i'm working in android and I need your help. In string in values I have this
<item>(1 / 1024)</item>
I need to parse this string to double this way
outputDouble = Double.parseDouble(unitsValues[outputPosition]);
so it means this
outputDouble = Double.parseDouble((1 / 1024));
This second code mean, that I find the line by index I need and it tries to convert it from string to double but it is impossible because it can recognize this string (1 / 1024) to double. Do you have any ideas?
Thank you