Function fabs

const fn fabs<T: bounds::FloatPrimitive>(x: T) -> T

Returns the absolute value of a floating-point value.

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