kacheek Posted April 2, 2007 Share Posted April 2, 2007 hi, i have created a variable as below:Name: $V{TOTAL_AMT}Class type: java.math.BigDecimalReset type: ReportIncrement type: NoneCalculation type: SumVariable exp: $F{AMT} how can i add 5 to $V{TOTAL_AMT}eg: $V{TOTAL_AMT} + 5 which gives a result of 'TOTAL_AMT = 18 + 5 = 23'?? Link to comment Share on other sites More sharing options...
kacheek Posted April 3, 2007 Author Share Posted April 3, 2007 is it possible to do that? where we take the variable value to be added with another number?pls guide. thanks Link to comment Share on other sites More sharing options...
kacheek Posted April 4, 2007 Author Share Posted April 4, 2007 can someone pls pls pls pls help me? :( or is there another way to solve this issue? Link to comment Share on other sites More sharing options...
santhi.mca Posted April 16, 2007 Share Posted April 16, 2007 why can't u use the following expression instead of 5 directly. new BigDecimal(Integer.valueOf(5).longValue()) Thanks,Santhi Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now