By: Joseph Wu - thwu
Help! mathematics on Expressions
2002-10-25 02:20
Can Jasper do mathematics on expressions? such as (MaxValue - MinValue)/6*Stdev
All Fields are Floating.
<textFieldExpression>
$F{MaxValue}-$F{MinValue}/6*$F{Stdev}
</textFieldExpression>
The result shows error as below
Incompatible type for -.
Invalid cast from double to java.lang.Float.
Can anyone help me, please!
By: Dejan - dnikolov
RE: Help! mathematics on Expressions
2002-10-26 04:34
what is type of your field???
If is Double attempt this
new Double(($F{MaxValue}.doubleValue()-$F{MinValue}.doubleValue())/(6.0*$F{Stdev}.doubleValue())
Help! mathematics on Expressions
2002-10-25 02:20
Can Jasper do mathematics on expressions? such as (MaxValue - MinValue)/6*Stdev
All Fields are Floating.
<textFieldExpression>
$F{MaxValue}-$F{MinValue}/6*$F{Stdev}
</textFieldExpression>
The result shows error as below
Incompatible type for -.
Invalid cast from double to java.lang.Float.
Can anyone help me, please!
By: Dejan - dnikolov
RE: Help! mathematics on Expressions
2002-10-26 04:34
what is type of your field???
If is Double attempt this
new Double(($F{MaxValue}.doubleValue()-$F{MinValue}.doubleValue())/(6.0*$F{Stdev}.doubleValue())
0 Answers:
No answers yet