If you try the following bit you'll get -0
<c:set var="demo" value="-0.04" />
<fmt:formatNumber maxFractionDigits="1" value="${demo}" var="demo" />
but if you test if less than 0 it says true
<c:if test="${demo < 0.00}">...</c:if>
How can I go around this? It doesn't seem to make sense, 0 equals -0, I had the prove it in algebra... In this post they point to an IEEE reference, but still, I can't solve the problem
EDIT: Thanks for the comment, there as a mistake in the code sample. I assign the rounded value to the demo variable. And the output is not 0, but -0, I tried it