<td><c:out value="${varApm_qpay.METRICS_IN_SLA}"/></td>
<td><c:out value="${varApm_qpay.METRICS_OUT_OF_SLA}" /></td>
<td><c:out value="${varApm_qpay.TOTAL_METRICS}" /></td>

I am using the above mentioned code to access a data and then display it on my jsp page. My problem is that I want to truncate the decimal values that are being displayed on my jsp page. for example 15.0 should be 15.
Can anyone please suggest me a way to do it in JSTL. I know fmt:formatNumber can do this, but I dont know how to use it with c:out
A code snippet would be highly helpful
Thanks in advance :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.