Round to nearest integer: Math.round(2.5)
Round to no more than 2 decimals: Math.round(num * 100) / 100
- Printer-friendly version
- Log in to post comments
Round to nearest integer: Math.round(2.5)
Round to no more than 2 decimals: Math.round(num * 100) / 100