mickyrox Posted August 11, 2010 Share Posted August 11, 2010 HiI'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.60So 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 Advancemicky Link to comment Share on other sites More sharing options...
slow Posted August 17, 2010 Share Posted August 17, 2010 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 - GabrielPost Edited by slow at 08/19/2010 06:59 Link to comment Share on other sites More sharing options...
mickyrox Posted August 19, 2010 Author Share Posted August 19, 2010 Thanks!! Ploblem solved!! 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