From b12ec913d7ee313e78106af9dab5baf5dffa9413 Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Thu, 10 Sep 2009 16:18:33 +0100 Subject: [PATCH] doc: Fleshed out Number#floor slightly. --- src/lang/number.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lang/number.js b/src/lang/number.js index c7f3781..7f4ef9b 100644 --- a/src/lang/number.js +++ b/src/lang/number.js @@ -101,6 +101,8 @@ Object.extend(Number.prototype, (function() { * Number#floor() -> Number * * Returns the largest integer less than or equal to the number. + * Convenience method that simply calls `Math.floor` on this instance and + * returns the result. **/ function floor() { return Math.floor(this);