doc.rust-lang.org
pub const EULER_GAMMA: f64
The Euler-Mascheroni constant (γ)
constant
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const E: f64
Euler's number (e)
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod consts
Basic mathematical constants.
module
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn classify(self) -> FpCategory
Returns the floating point category of the number. If only one property is going to be tested, it is generally faster to use the specific predicate instead.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn clamp(self, min: f64, max: f64) -> f64
Restrict a value to a certain interval unless it is NaN.
method
core
Stable since 1.50.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_sub(self, rhs: f64) -> f64
Float subtraction that allows optimizations based on algebraic rules.
method
core
Stable since 1.98.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_rem(self, rhs: f64) -> f64
Float remainder that allows optimizations based on algebraic rules.
method
core
Stable since 1.98.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_mul(self, rhs: f64) -> f64
Float multiplication that allows optimizations based on algebraic rules.
method
core
Stable since 1.98.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_div(self, rhs: f64) -> f64
Float division that allows optimizations based on algebraic rules.
method
core
Stable since 1.98.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_add(self, rhs: f64) -> f64
Float addition that allows optimizations based on algebraic rules.
method
core
Stable since 1.98.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn abs(self) -> f64
Computes the absolute value of self.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const RADIX: u32
The radix or base of the internal representation of f64. Use f64::RADIX instead.
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
const RADIX: u32
The radix or base of the internal representation of f64.
associated_constant
core
Stable since 1.43.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const NEG_INFINITY: f64
Negative infinity (−∞). Use f64::NEG_INFINITY instead.
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
const NEG_INFINITY: f64
Negative infinity (−∞).
associated_constant
core
Stable since 1.43.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const NAN: f64
Not a Number (NaN). Use f64::NAN instead.
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
const NAN: f64
Not a Number (NaN).
associated_constant
core
Stable since 1.43.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const MIN_POSITIVE: f64
Smallest positive normal f64 value. Use f64::MIN_POSITIVE instead.
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
const MIN_POSITIVE: f64
Smallest positive normal f64 value.
associated_constant
core
Stable since 1.43.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const MIN_EXP: i32
One greater than the minimum possible normal power of 2 exponent. Use f64::MIN_EXP instead.
constant
core
Stable since 1.0.0
Version 1.100.0-nightly