Jump to content
We've recently updated our Privacy Statement, available here ×

Number pattern doesn\'t show


mickyrox

Recommended Posts

Hi

I'm working on a report and its running smooth so far.

However i'm a begginer and have no experience in java so i need to find a way around this.

I need to display a field as a number with 2 digits after the decimal and a thousands seperator.
It should look like 12,345.60
So i set the pattern accordingly.

the expression in my text field is: ($F{BigDecimal1}.plus($F{BigDecimal2}).divide($P{Integer},2))

The arthematic is correct, but when my field displays i see something like.

12345.6 instead of 12,345.60. I'd appreciate if you could point out where i'm going wrong.

Kindly ask for any specific information.

Thanks in Advance
micky
 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

try to use this expression in the pattern field of your bigDecimal textfield:

#,##0.##;-#,##0.##

 

give us feedback...

 

_________________________________________

if it works... give me KARMA points please!    : ) 
_________________________________________

listening:  Lamb - Gabriel



Post Edited by slow at 08/19/2010 06:59
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...