Skip to main content

round_ties_even

Function round_ties_even 

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

Returns the nearest integer to a floating-point value. Rounds half-way cases to the number with an even least significant digit.

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