how to round a number to the nearest tenth in javascript code example
Example: math.round to nearest hundreth
//to round up to two decimal places
function money_round(num) {
return Math.ceil(num * 100) / 100;
}
//to round up to two decimal places
function money_round(num) {
return Math.ceil(num * 100) / 100;
}