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
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.