Skip to main content

Module consts

Module consts 

Source
🔬This is a nightly-only experimental API. (f128 #116909)
Expand description

Basic mathematical constants.

Constants§

EExperimental
Euler’s number (e)
EULER_GAMMAExperimental
The Euler-Mascheroni constant (γ)
FRAC_1_PIExperimental
1/π
FRAC_1_SQRT_2Experimental
1/sqrt(2)
FRAC_1_SQRT_3Experimental
1/sqrt(3)
FRAC_1_SQRT_5Experimental
1/sqrt(5)
FRAC_1_SQRT_2PIExperimental
1/sqrt(2π)
FRAC_1_SQRT_PIExperimental
1/sqrt(π)
FRAC_2_PIExperimental
2/π
FRAC_2_SQRT_PIExperimental
2/sqrt(π)
FRAC_PI_2Experimental
π/2
FRAC_PI_3Experimental
π/3
FRAC_PI_4Experimental
π/4
FRAC_PI_6Experimental
π/6
FRAC_PI_8Experimental
π/8
GOLDEN_RATIOExperimental
The golden ratio (φ)
LN_2Experimental
ln(2)
LN_10Experimental
ln(10)
LOG2_10Experimental
log2(10)
LOG2_EExperimental
log2(e)
LOG10_2Experimental
log10(2)
LOG10_EExperimental
log10(e)
PIExperimental
Archimedes’ constant (π)
SQRT_2Experimental
sqrt(2)
SQRT_3Experimental
sqrt(3)
SQRT_5Experimental
sqrt(5)
TAUExperimental
The full circle constant (τ)