ceil
lib callCapy
function ceil(value : f32) f32 function ceil(value : f64) f64
Description
ceil() rounds toward positive infinity: ceil(-2.5) is -2.0.
Parameters
value : a floating-point number
Return Values
The smallest integral value that is not less than value, in the same type.
Example
Capy
print(ceil(2.1), " ", ceil(-2.5), "\n")
Output
3 -2