$floor: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Doomie (talk | contribs)
No edit summary
Doomie (talk | contribs)
No edit summary
Line 3: Line 3:
  $floor(N)
  $floor(N)


* ''N'' is the number you want the next lowest integer of.
* ''N'' is the number you want to round down to its next integer.


== Examples ==
== Examples ==

Revision as of 12:02, 5 September 2005

Returns N rounded to the next lowest integer.

$floor(N)
  • N is the number you want to round down to its next integer.

Examples

$floor($pi) - will return 3
$floor(-4,99) - will return -5

See Also

$round, $ceil and $int.