gohpc Posted November 28, 2014 Share Posted November 28, 2014 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 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