Is it possible to conserve a second decimal 0 when writing data to an html input using thymeleaf ?
If I wanted to println it I could just use a formatter in Java, how can the same be done in Thymeleaf ?
I tried using the thymeleaf formatter for numbers like this:
th:value="${#numbers.formatDecimal(exampledata,0,'POINT',2,'COMMA')}
which isn't working.
It does look like this, when writing data to input using th:value="${exampledata}":
<input value="5.0"/>
while I want it to look like this:
<input value="5.00"/>
The project, this is part of, is done in Java using Spring.