$ceil: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
typo..
m fixed commenting syntax
Line 7: Line 7:
== Examples ==
== Examples ==


  $ceil([[$pi]]) - will return ''4''
  $ceil([[$pi]]) ;will return ''4''
  $ceil(-4,99) - will return ''-4''
  $ceil(-4,99) ;will return ''-4''


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

Revision as of 13:34, 10 November 2005

Returns N rounded to the next highest integer.

$ceil(N)
  • N is the number you want to round up to its next integer.

Examples

$ceil($pi)  ;will return 4
$ceil(-4,99)  ;will return -4

See Also

$round, $floor and $int.