instance method Number#round

View source on GitHub →

Number#round() → Number

Rounds the number to the nearest integer. Convenience method that simply calls Math.round on this instance and returns the result.