2004 IR Help Posted August 30, 2006 Share Posted August 30, 2006 By: Adrian din - nida0 operator - cannot be applied to java... 2004-02-06 01:38 I am trying to calculate the difference of 2 columns: variabile type is double (as the comuns are) Expresion: $F{val_mon} - $F{val_mon_inc} .... When running the report I get this error: operator - cannot be applied to java.lang.double, java.lang.double: value = (java.lang.Double)(((java.lang.Double)field_val_mon.getValue()) - ((java.lang.Double)field_val_mon_inc.getValue())); I do not know what is the problem : everything is DOUBLE - why can't HE operate the difference ? Thank You, Adrian Din By: Adrian din - nida0 RE: operator - cannot be applied to java... 2004-02-06 04:06 Found it: new Double( $F{val_mon}.doubleValue() - $F{val_mon_inc}.doubleValue ()) 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