Navigation
Synopsis Compute the largest integer that is smaller than a given number.
Function int floor(num x)
Usage import util::Math;
Description Computes the floor of a given number. Also see ceil.
Examples
rascal>import util::Math;
ok
rascal>floor(3.2);
int: 3
rascal>floor(-3.2);
int: -4
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.