Round to Nearest Decimal Place
HTML
<i id="tenth"></i>
<i id="hundreth"></i>
<i id="thousandth"></i>
CSS
i {
text-transform: none;
display: block;
}
JavaScript
//round to decimal place
var f = 110.123456;
var tenth = Math.round(f * 10) / 10;
var hundreth = Math.round(f * 100) / 100;
var thousandth = Math.round(f * 1000) / 1000;
$('#tenth').html(tenth);
$('#hundreth').html(hundreth);
$('#thousandth').html(thousandth);