JSFiddle - React, Tailwind, and code Playground
HTML
<div class="testa"></div>
<br>
<div class="testb"></div>
JavaScript
a = 1,809999
b = 27,94989
a = Math.floor(a * 100) / 100;
b = Math.floor(b * 100) / 100;
$(".testa").text(a.toFixed(2));
$(".testb").text(b.toFixed(2));