$floor: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
m fixed commenting syntax
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:


  $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 ==
 
* [[$round]]
[[$round]], [[$ceil]] and [[$int]].
* [[$ceil]]  
* [[$int]]


[[Category:Text and Number Identifiers]]
[[Category:Text and Number Identifiers]]

Latest revision as of 09:03, 2 July 2007

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