You can use el:
${value < 0 ? -value:value}
or Create a custom EL function which delegates to Math#abs(int).
Вопрос
How to display positive value or absolute value of a number in jstl?
<fmt:formatNumber value="${-85}" format="%" /> <!-- should convert -85 to 85 -->
Решение
You can use el:
${value < 0 ? -value:value}
or Create a custom EL function which delegates to Math#abs(int).
Другие советы
create you custom EL function in your code.
Try adding the type
attribute to the expression.
<fmt:formatNumber type="currency" value="${-85}" />