开发者

How to convert String to Double value in jasper Reports?

开发者 https://www.devze.com 2023-01-15 07:00 出处:网络
How to convert String to Double value in jasper Reports? I am having two fields in .jrxml file like below

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

<field name="secRate" class="java.lang.String"/> 
<field name="secPrice" class="java.lang.String"/> 

i need to subtract both the fi开发者_运维技巧eld

     $V{Variable} = $F{secRate} - SF{secPrice} 

i tried this way but not working

      (new Double(Double.parseDouble($F{mktVal}))) 

any idea? please help me guys..


new Double(Double.parseDouble($F{secRate}) + Double.parseDouble($F{secPrice}))
0

精彩评论

暂无评论...
验证码 换一张
取 消