Conversion calculation from string do double
<p>i'm working in android and I need your help. In <strong>string</strong> in <strong>values</strong> I have this</p>

<pre><code>&lt;item&gt;(1 / 1024)&lt;/item&gt;
</code></pre>

<p>I need to parse this string to double this way</p>

<pre><code>outputDouble = Double.parseDouble(unitsValues[outputPosition]);
</code></pre>

<p>so it means this</p>

<pre><code>outputDouble = Double.parseDouble((1 / 1024));
</code></pre>

<p>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?</p>

<p>Thank you</p>
