Skip to main content

floor_pow2

Function floor_pow2 

Source
pub fn floor_pow2(x: f64) -> f64
Expand description

Largest power of two 2^n <= x. Assumes positive_finite(x).

Same powi + one-step-correction scheme as floor_pow10.