Rev Language Reference


ceil - Ceiling value of a number

The 'ceil' function maps the value of a number to the smallest following integer.

Usage

ceil(Real x)

Arguments

x : Real (pass by const reference)
The value.

Return Type

Example

# compute the ceiling of a real number
number <- 3.4
ceiled_number <- ceil(number)
if (ceiled_number != 4.0) {
    print("Problem when computing a ceiled value.")
} else {
    print("Correct computation of a ceiled value.")
}

See Also