core::f32

Constant MIN_POSITIVE

1.6.0 · source
pub const MIN_POSITIVE: f32 = f32::MIN_POSITIVE; // 1.17549435E-38f32
👎Deprecating in a future version: replaced by the MIN_POSITIVE associated constant on f32
Expand description

Smallest positive normal f32 value. Use f32::MIN_POSITIVE instead.

§Examples

// deprecated way
let min = std::f32::MIN_POSITIVE;

// intended way
let min = f32::MIN_POSITIVE;