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