How to convert String to Double value in jasper Reports?
<p>How to convert String to Double value in jasper Reports? I am having two fields in .jrxml file like below</p>

<pre><code>&lt;field name="secRate" class="java.lang.String"/&gt; 
&lt;field name="secPrice" class="java.lang.String"/&gt; 
</code></pre>

<p>i need to subtract both the field</p>

<pre><code>     $V{Variable} = $F{secRate} - SF{secPrice} 
</code></pre>

<p>i tried this way but not working</p>

<pre><code>      (new Double(Double.parseDouble($F{mktVal}))) 
</code></pre>

<p>any idea? please help me guys..</p>
