#ceiling()
DESCRIPTION
returns a number rounded up to the nearest integer
SYNOPSIS
#ceiling(n)
ARGUMENTS
n - a number, or numerical expression
EXAMPLES
# pikt +C 'output $text(#ceiling(-3.75))'
-3
# pikt +C 'output $text(#ceiling(-3.5))'
-3
# pikt +C 'output $text(#ceiling(-3.25))'
-3
# pikt +C 'output $text(#ceiling(3.25))'
4
# pikt +C 'output $text(#ceiling(3.5))'
4
# pikt +C 'output $text(#ceiling(3.75))'
4
SEE ALSO
#int(), #integer()
#trunc(), #truncate()
#round()
Numerical Functions
String Functions