From 20724ea1f95ec4b927b01ed8ceb45f248d2d5f05 Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Thu, 10 Sep 2009 16:18:59 +0100 Subject: [PATCH] doc: Fleshed out Number#round slightly. --- src/lang/number.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lang/number.js b/src/lang/number.js index 7f4ef9b..a3bc9b0 100644 --- a/src/lang/number.js +++ b/src/lang/number.js @@ -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);