Difference between revisions of "$floor"

From Scriptwiki
Jump to: navigation, search
 
Line 11: Line 11:
  
 
== See Also ==
 
== See Also ==
 
  
 
[[$round]], [[$ceil]] and [[$int]].
 
[[$round]], [[$ceil]] and [[$int]].
  
 
[[Category:Text and Number Identifiers]]
 
[[Category:Text and Number Identifiers]]

Revision as of 13:54, 5 September 2005

Returns N rounded to the next lowest integer.

$floor(N)
  • N is the number you want the next lowest integer of.

Examples

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

See Also

$round, $ceil and $int.