I know how to format a double like 9.78313E+10 that it display 97831300000 in Java.
But I have an MVC application and there is a getter at the view part for the double like:
<td>
<input type="number" step="0.00000001" th:placeholder="'Current: '+ *{product.getTop()}" name="top"/>
</td>
My problem is that the view now displays 9.78313E+10.
A workaround would be a second getter for that object which formats that double to a String and returns it then.
Is there a more elegant way to solve that problem with Thymeleaf?