$ceil

From Scriptwiki
Revision as of 14:34, 10 November 2005 by Microbe (talk | contribs) (fixed commenting syntax)

Jump to: navigation, search

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.