CEILING()
Rounds up a number to the next integer
- Syntax
-
- CEILING (nNumber) -> nUpRoundedNumber
- Arguments
-
- <nNumber> number to round up
- Returns
-
- <nUpRoundedNumber> the rounded number
- Description
-
- The function CEILING() determines the smallest integer that is bigger than <nNumber>.
Examples
? ceiling (1.1) --> 2.0
? ceiling (-1.1) --> -1.0
Tests
ceiling (1.1) == 2.0
ceiling (-1.1) == -1.0
- Status
- Ready
- Compliance
-
- CEILING() is compatible with CT3's CEILING().
- Platforms
-
- All
- Files
-
- Source is math.c, library is libct.
- See Also