![]() |
|
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 ![]() |