![]() |
|
Navigation |
Synopsis Compute the smallest integer that is larger than a given number.
Function
int ceil(num x)
Usage
import util::Math;
Description Computes the ceiling of a given number.
Also see floor.
Examples
rascal>import util::Math; ok rascal>ceil(3.2); int: 4 rascal>ceil(-3.2); int: -3 ![]() |