Skip to main content

floor

Function floor 

Source
pub const fn floor<T: Dispatch>(x: T) -> T
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Returns the largest integer less than or equal to a floating-point value.

The stabilized versions of this intrinsic are available on the float primitives via the floor method. For example, f32::floor.