Supposing that In the jsp file, I want to show the value which is computed as below :
<c:when test="${userProduct.term.label == 'tháng'}">
<c:if test="${userProduct.term.value %12==0}"> ${userProduct.term.value/12} năm</c:if>
Supposing that value = 36 and the number which I want to show to user is 3. However, the number which I received is 3.0. Currently, I am looking for a way to show as I expected. Please tell me know the way to do it. Thanks.
You can use the fmt:parseNumber tag
http://www.tutorialspoint.com/jsp/jstl_format_parsenumber_tag.htm
You could use JSTL to accomplish this, specifically the
<fmt:formatNumber>
tag.