jbbaird Posted November 4, 2006 Share Posted November 4, 2006 I have a BigDecimal Field (RUN_ERR_CODE) with a value of 0 or a positive integer ... I am trying to "print when expression" on new Boolean ($F{RUN_ERR_CODE}.intValue()!=0) To display when it is non zero - any guesses at why this doesn't work? Thanks Link to comment Share on other sites More sharing options...
markus Posted November 8, 2006 Share Posted November 8, 2006 Hi,Perhaps your field value is too largely to int converts. from Sun API "Converts this BigDecimal to an int. This conversion is analogous to a narrowing primitive conversion from double to short as defined in the Java Language Specification: any fractional part of this BigDecimal will be discarded, and if the resulting "BigInteger" is too big to fit in an int, only the low-order 32 bits are returned. Note that this conversion can lose information about the overall magnitude and precision of this BigDecimal value as well as return a result with the opposite sign." Markus 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