doc: Fleshed out Number#floor slightly.

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

View File

@ -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);