This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

two variable addition  RSS feed

 
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
Boost this thread!