[ http://jira.codehaus.org/browse/DISPL-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156422#action_156422 ]
Zach Legein commented on DISPL-576: ----------------------------------- Note: the method is in HeaderCell > Column totals do not display properly with super small amounts. > --------------------------------------------------------------- > > Key: DISPL-576 > URL: http://jira.codehaus.org/browse/DISPL-576 > Project: DisplayTag > Issue Type: Bug > Components: Tag Library > Affects Versions: 1.1.1 > Reporter: Zach Legein > > If you are using a BigDecimal for column values and they are really small > then you get display issues when totaling. The problem is when trying to add > each column value to the total. if the value is a BigDecimal and you add that > to a double and the amounts are very small, then you will have a display > issue due to decimal precision. > private void addToTotal(Object value) > { > if (value != null && value instanceof Number) > { > this.total = this.total + ((Number) value).doubleValue(); > } > } > I think the total variable needs to be changed to a BigDecimal to handle > these cases. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel