$floor: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Doomie (talk | contribs)
No edit summary
m fixed commenting syntax
Line 7: Line 7:
== Examples ==
== Examples ==


  $floor([[$pi]]) - will return ''3''
  $floor([[$pi]]) ;will return ''3''
  $floor(-4,99) - will return ''-5''
  $floor(-4,99) ;will return ''-5''


== See Also ==
== See Also ==

Revision as of 13:34, 10 November 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.