Constant MAX

Deprecated since 1.99.0: replaced by the `MAX` associated constant on `f64`
pub const MAX: f64 = 1.7976931348623157E+308f64;

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

Examples

// deprecated way
# #[allow(deprecated)]
let max = std::f64::MAX;

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