I am having a string value(12.023) as String and I want to convert it to double and round this value and print on textfield, How to do this.
my textfield expression is -> $P{totalAvgBytes}
Expression class -> java.lang.String
What i have to do in
Pattern Expr - > ?????
I tired like Pattern Expr = Double.valueOf($P{totalAvgBytes}).
But it throws error like double can not be cast to string.
1 Answer