Retention function of several decimal places
function xround(x, num) { x = parseFloat(x); num = parseInt(num); return Math.round(x * Math.pow(10, num)) / Math.pow(10, num); }
Retention function of several decimal places
function xround(x, num) { x = parseFloat(x); num = parseInt(num); return Math.round(x * Math.pow(10, num)) / Math.pow(10, num); }