core::f64::consts - Rust
Description: Basic mathematical constants.

## Module consts

1.6.0 · Source
Expand description

Basic mathematical constants.

## Constants§

E
  Euler’s number (e)
EULER_GAMMA
  The Euler-Mascheroni constant (γ)
FRAC_1_PI
  1/π
FRAC_1_SQRT_2
  1/sqrt(2)
FRAC_2_PI
  2/π
FRAC_2_SQRT_PI
  2/sqrt(π)
FRAC_PI_2
  π/2
FRAC_PI_3
  π/3
FRAC_PI_4
  π/4
FRAC_PI_6
  π/6
FRAC_PI_8
  π/8
GOLDEN_RATIO
  The golden ratio (φ)
LN_2
  ln(2)
LN_10
  ln(10)
LOG2_10
  log2(10)
LOG2_E
  log2(e)
LOG10_2
  log10(2)
LOG10_E
  log10(e)
PI
  Archimedes’ constant (π)
SQRT_2
  sqrt(2)
TAU
  The full circle constant (τ)
FRAC_1_SQRT_3Experimental
  1/sqrt(3)
FRAC_1_SQRT_2PIExperimental
  1/sqrt(2π)
FRAC_1_SQRT_PIExperimental
  1/sqrt(π)
SQRT_3Experimental
  sqrt(3)