Difference between revisions of "$ceil"
From Scriptwiki
m (fixed commenting syntax) |
m (-4,99 -> -4.99) |
||
Line 8: | Line 8: | ||
$ceil([[$pi]]) ;will return ''4'' | $ceil([[$pi]]) ;will return ''4'' | ||
− | $ceil(-4 | + | $ceil(-4.99) ;will return ''-4'' |
== See Also == | == See Also == |
Revision as of 09:08, 10 September 2006
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