W3cubDocs

/Rust

Constant std::f32::NAN

pub const NAN: f32 = f32::NAN; // NaNf32

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

Examples

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

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

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/f32/constant.NAN.html