Jump to content

Format double - help!


vk01

Recommended Posts

Hi,

 

I have a double field which gets this value - 0.0

 

It is requested that it show up as blank instead of 0.0 - how to format this?

 

I have tried - defined a variable as string and set

--

($F{DISTANCE}.intValue() == 0) ? " " : $F{DISTANCE}.toString())

--

The pattern is not working on this variable, maybe being a string. Want to report on a single decimal point.

 

Thanks!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...