jsp中如何判断el表达式中的BigDecimal==0

比较蠢一点的做法:

<c:if test="${not ((someBigDecimal < 0) or (someBigDecimal > 0))}">

(在JSP2.2里面)好点的做法:

${someBigDecimal.unscaledValue() == 0}

使用fn函数的做法:

${fn:isZero(someBigDecimal)}
原文地址:https://www.cnblogs.com/airfans/p/3255487.html