Trait num_traits::float::FloatConst [] [src]

pub trait FloatConst {
    fn E() -> Self;
fn FRAC_1_PI() -> Self;
fn FRAC_1_SQRT_2() -> Self;
fn FRAC_2_PI() -> Self;
fn FRAC_2_SQRT_PI() -> Self;
fn FRAC_PI_2() -> Self;
fn FRAC_PI_3() -> Self;
fn FRAC_PI_4() -> Self;
fn FRAC_PI_6() -> Self;
fn FRAC_PI_8() -> Self;
fn LN_10() -> Self;
fn LN_2() -> Self;
fn LOG10_E() -> Self;
fn LOG2_E() -> Self;
fn PI() -> Self;
fn SQRT_2() -> Self; }

Required Methods

Return Euler’s number.

Return 1.0 / π.

Return 1.0 / sqrt(2.0).

Return 2.0 / π.

Return 2.0 / sqrt(π).

Return π / 2.0.

Return π / 3.0.

Return π / 4.0.

Return π / 6.0.

Return π / 8.0.

Return ln(10.0).

Return ln(2.0).

Return log10(e).

Return log2(e).

Return Archimedes’ constant.

Return sqrt(2.0).

Implementations on Foreign Types

impl FloatConst for f64
[src]

impl FloatConst for f32
[src]

Implementors