Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

two variable addition

 
vitesse wei
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
vitesse wei
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just figure it out.
new java.lang.Float(($V{v1}.floatValue())*100/$V{v2}.floatValue())


cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic