var num1 = "0.1";
document.getElementById('num1').innerHTML = (Math.round(num1 * 100) / 100).toFixed(2);
var num2 = "1.341";
document.getElementById('num2').innerHTML = (Math.round(num2 * 100) / 100).toFixed(2);
var num3 = "1.345";
document.getElementById('num3').innerHTML = (Math.round(num3 * 100) / 100).toFixed(2);
_x000D_
span {
border: 1px solid #000;
margin: 5px;
padding: 5px;
}
_x000D_
<span id="num1"></span>
<span id="num2"></span>
<span id="num3"></span>
_x000D_