ceil
- Ceiling value of a number
x : | Real (pass by const reference) |
The value. |
# 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.")
}