我有类似这样的东西:
<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'">