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

Ireport Excel BigDecimal roundup by itself


gohpc

Recommended Posts

i have been working on the subtotal column, using BigDecimal for variable, to sum total amount, reset type by report,

the problem with this column is when the amount has few cents, the subtotal column will round up to no decimal, even i have apply the text field pattern of #,##0.00. the value after decimal will remain 0.

been working on this for almost 2 weeks, and still can't see what seems to be the problem. i have tried changing text field into string, applying java.text.DecimalFormat. Round up with 2 decimal in SQL query. nothing seems to be working. However, with the same SQL structure in PDF preview it worked. 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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