Difference between revisions of "$floor"

From Scriptwiki
Jump to: navigation, search
m (fixed commenting syntax)
m (-4,99 -> -4.99)
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 ==

Revision as of 10:07, 10 September 2006

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.