doc.rust-lang.org
pub const FRAC_PI_6: f32
π/6
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_PI_4: f32
π/4
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_PI_3: f32
π/3
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_PI_2: f32
π/2
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_2_SQRT_PI: f32
2/sqrt(π)
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_2_PI: f32
2/π
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_1_SQRT_2: f32
1/sqrt(2)
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_1_PI: f32
1/π
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const EULER_GAMMA: f32
The Euler-Mascheroni constant (γ)
constant
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const E: f32
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: f32, max: f32) -> f32
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: f32) -> f32
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: f32) -> f32
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: f32) -> f32
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: f32) -> f32
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: f32) -> f32
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) -> f32
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 f32. Use f32::RADIX instead.
constant
core
Stable since 1.0.0
Version 1.100.0-nightly