Constant std::f32::NAN1.0.0[][src]

pub const NAN: f32 = f32::NAN; // NaNf32
👎 Deprecating in a future Rust version:

replaced by the NAN associated constant on f32

Not a Number (NaN). Use f32::NAN instead.

Examples

// deprecated way
let nan = std::f32::NAN;

// intended way
let nan = f32::NAN;
Run