doc: Fleshed out Number#round slightly.

This commit is contained in:
tjcrowder 2009-09-10 16:18:59 +01:00
parent b12ec913d7
commit 20724ea1f9
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ Object.extend(Number.prototype, (function() {
/**
* Number#round() -> Number
*
* Rounds the number to the nearest integer.
* Rounds the number to the nearest integer. Convenience method that simply
* calls `Math.round` on this instance and returns the result.
**/
function round() {
return Math.round(this);