The smallest whole number not below x, as a float or float64. Infinities, NaN and values already whole are returned as they are.
assert(ceil(1.2) == 2 && ceil(-1.8) == -1 && ceil(3.0) == 3);ceil :: (x: float64) -> float64
Rounds up to a whole number.
Parameters
- x: float64
- the value to round.
Returns
- float64
ceil :: (f: float) -> float
Rounds up to a whole number.
Parameters
- f: float
- the value to round.
Returns
- float