2002 JI Open Discussion Posted August 19, 2006 Share Posted August 19, 2006 By: Ruben Misrahi - rnmisrahi Double blank when zero 2003-11-06 13:33 Is it possible to print a blank (or not print obviously) when a field/variable of type Double is zero? By: Fred Welland - fwelland RE: Double blank when zero 2003-11-06 13:43 How about some thing like this: <field name="someDoubleVal" class="java.lang.Double"/> ........ ....... ........ <textFieldExpression class="java.lang.String"> ( $F{someDoubleVal}.doubleValue() == 0) ? $F{someDoubleVal}.toString() : "" </textFieldExpression> 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