On this page
Constant std::f64::NAN
pub const NAN: f64 = f64::NAN; // NaNf64
👎Deprecating in a future Rust version: replaced by the
NAN
associated constant on f64
Not a Number (NaN). Use f64::NAN
instead.
Examples
// deprecated way
let nan = std::f64::NAN;
// intended way
let nan = f64::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/f64/constant.NAN.html