method f32.ceil
The smallest integer value not below x, as a float.
Example:
fn main() io {
let x: f32 = 2.1
print("{x.ceil()}")
}Output
3.0
pub(api) fn ceil() -> f32Complexity. O(1).
Since. 1.0.0-beta
Returns
f32
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/numbers.oxl:4258