W3cubDocs

/Rust

Constant std::f64::MAX

pub const MAX: f64 = f64::MAX; // 1.7976931348623157E+308f64

Largest finite f64 value. Use f64::MAX instead.

Examples

// deprecated way
let max = std::f64::MAX;

// intended way
let max = f64::MAX;

© 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.MAX.html