Function ceil
pub fn ceil(x: &Variant) -> VariantExpand description
Rounds x upward (towards positive infinity), returning the smallest whole number that is not less than x. Supported types: int, float, Vector2, Vector2i, Vector3, Vector3i, Vector4, Vector4i.
var i = ceil(1.45) # i is 2.0
i = ceil(1.001) # i is 2.0See also [method floor], [method round], and [method snapped].
Note: For better type safety, use [method ceilf], [method ceili], ceil, ceil, or ceil.