dgmanu Posted October 27, 2006 Share Posted October 27, 2006 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 youManu D G Link to comment Share on other sites More sharing options...
nsperumal Posted November 4, 2006 Share Posted November 4, 2006 I am also facing similar issue. Can any one help to fix the issue. Link to comment Share on other sites More sharing options...
wegnerk Posted November 6, 2006 Share Posted November 6, 2006 can you specify the parameter and field declaration? are they Double? what jr-version do you use? Link to comment Share on other sites More sharing options...
rita_dewan Posted November 7, 2006 Share Posted November 7, 2006 at my end i tried the following code Code:new Double($P{temp}.doubleValue()*$P{Temp2}.doubleValue()) Check the datatypes of fields or parameters you are using for computation or post code for field and parameter declaration. 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