in jstl currency for matter is using http://java.sun.com/jsp/jstl/fmt.
Tag included as follows: <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
we are using as
<fmt:formatNumber maxFractionDigits="0" currencySymbol="$" type="currency" value="${employeeDetail.employee.annualSalary }" />
Now behavior is :
Ex: $470.161 is round to $470.16)
Ex: $470.165 is round to $470.16)
Ex: $470.166 is round to $470.17)
what is expected uis
Ex: $470.161 is round to $470.16)
Ex: $470.165 is round to $470.17)
Ex: $470.166 is round to $470.17)
is there is any way we can set round RoundingMode.HALF_UP ?
Any way to override the default behavior of [jstl fmt tag library] and giving support of rounding mode.