var numb= 212421434.533423131231; var rounded = Math.round((numb + Number.EPSILON) * 100) / 100; console.log(rounded);