Jump to content

I'm slow ... (conditional formating)


jbbaird

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...