andysusanto Posted September 27, 2006 Share Posted September 27, 2006 hai, why jaspereport always rounding down ?, so that value always diff with my java servlet i am using BigDecimal TIA, andy Link to comment Share on other sites More sharing options...
rsilverns.sympatico.ca Posted September 27, 2006 Share Posted September 27, 2006 BigDecimal supports various rounding schemes. TO modify the scheme use in your field something like... $F{DOLLAR_FIELD} becomes.... $F{DOLLAR_FIELD}.setScale(2, BigDecimal.ROUND_HALF_UP).toString(); Link to comment Share on other sites More sharing options...
mmflynn Posted July 31, 2007 Share Posted July 31, 2007 I needed to figure this out for a report, and found this post on my first search. Thanks for the help! 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