Skip to main content

log2

Function log2 

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

Returns the base 2 logarithm of a floating-point value.

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