I have the following number: 10.205203 I would like it to appear in only 10.02;
I have this function, I do not know if it's the right one
<fmt:formatNumber value="${media / total}" pattern="#,#0.0#" />
Thank you
I have the following number: 10.205203 I would like it to appear in only 10.02;
I have this function, I do not know if it's the right one
<fmt:formatNumber value="${media / total}" pattern="#,#0.0#" />
Thank you
You can use minFractionDigits
and maxFractionDigits
- reference .
<fmt:formatNumber minFractionDigits="2" maxFractionDigits="2" value="${media / total}"/>