showing results for - "javascript two decimal places after division"
Jessica
03 Apr 2016
1Math.round(num * 100) / 100
2//OR to be more specific and to ensure things like 1.005 round correctly, use Number.EPSILON :
3Math.round((num + Number.EPSILON) * 100) / 100