#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
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
group file
problems
Pikt script