How to round off nearest integer after decimal.If the value after decimal above .25 than it should round of .50. It means the result should be 14.50 and if the result 14.25 or under than it should be only 14. Please check examples
document.getElementById("total1").innerHTML =(Math.ceil(501/500)*3.60*2).toFixed(2);
document.getElementById("total2").innerHTML =(Math.ceil(500/500)*3.60*2).toFixed(2);
<b>Result 1: (above 25)</b>
<div id="total1"></div>
<br>
<b>Expected Result 1:</b>
14.50
<br>
<br>
<b>Result 2: (below 25)</b>
<div id="total2"></div>
<br>
<b>Expected Result 2:</b>
14
<br>
<p>If the value after decimal above .25 than it should round of .50. It means the result should be 14.50 and if the result 14.25 or under than it should be only 14.</p>