I am trying to show the number minus 20%. The number is in a map and I am not ale to get the value from there.
This is not working:
<div class="row p-3 ml-1" th:each="r : ${roomTypes}">
<div th:with="price=*{r.value}" th:text="${#numbers.formatDecimal({price} * 0.8)}">x</div>
This is also not working
<div th:text="${#numbers.formatDecimal({r.value} * 0.8)}">x</div>
Is there a way to get this value in Thymeleaf? Or another way I can make this calculation?