Rounding issue with BigDecimal and JSP
Hi
In my Java I have two BigDecimals that I pass to a JSP. THey both have a scale of 2, so I have
x = 5.52 and y =1.22
When I add them up in the JSP, the decimal places are lost e.g.
<c:out value="${ x + y)"/>
I get 6, instead of 6.74
Please can someone tell my why I get this rounding error?
Thanks!