This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes two variable addition Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "two variable addition" Watch "two variable addition" New topic
Author

two variable addition

vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
I have two report wide variables in my jasper report,both of them are summary values to some columns,they are display in summary band,can I add one more variable to do some math operation,like v3=v1*100/v2.
if yes,how?


SCJP 5.0<br />SCWCD1.4<br />SCBCD5
vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
just figure it out.
new java.lang.Float(($V{v1}.floatValue())*100/$V{v2}.floatValue())


cheers
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: two variable addition
 
Similar Threads
need help
Hyperlink from Subreport to Master Report
Compiler vs. Runtime Error
Hyperlink from subreport to master report in Jasperreports
[RESOLVED] jasper & iReport multi-reports