Jump to content
JasperReports Library 7.0 is now available ×

how to multiply $F{total}


dgmanu

Recommended Posts

hi 2 all,

 

i will be having problem i.e i have $F{total} i want know what is the 10% of it i.e

Code:
$P{percent} ,so what i was tried is 

 

Code:
[code]new Double($F{total}.doubleValue()*$P{percent}.doubleValue())

 

i got this idea from net but it is not working,it giving error that

Code:
[code]cannot cast Double to Double and other error is * is undefined ,

please anyone know the answer let me know

 

 

Thanking you

Manu D G

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...