【发布时间】:2016-09-06 13:35:34
【问题描述】:
我有这样的事情:
<span th:text="*{a / (b + c)}"></span>
其中 a、b 和 c 是整数。我需要结果是一个浮点数。
有什么想法吗?
实际代码:
<span th:text="(*{item.candidates } > 0 and *{item.budgetSeats + item.taxSeats} > 0)?*{#numbers.formatDecimal(item.candidates / (item.budgetSeats + item.taxSeats),1,2, 'POINT')}:'N/A'">
【问题讨论】:
标签: java spring casting thymeleaf