Difference between revisions of "$floor"

From Scriptwiki
Jump to: navigation, search
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 14: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.