# 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;

        fn TAU() -> Self
        where
            Self: Sized + Add<Self, Output = Self>,
        { ... }
        fn LOG10_2() -> Self
        where
            Self: Sized + Div<Self, Output = Self>,
        { ... }
        fn LOG2_10() -> Self
        where
            Self: Sized + Div<Self, Output = Self>,
        { ... }
    }

## Required methods

### `fn E() -> Self` [src]

Return Euler’s number.

### `fn FRAC_1_PI() -> Self` [src]

Return `1.0 / π`.

### `fn FRAC_1_SQRT_2() -> Self` [src]

Return `1.0 / sqrt(2.0)`.

### `fn FRAC_2_PI() -> Self` [src]

Return `2.0 / π`.

### `fn FRAC_2_SQRT_PI() -> Self` [src]

Return `2.0 / sqrt(π)`.

### `fn FRAC_PI_2() -> Self` [src]

Return `π / 2.0`.

### `fn FRAC_PI_3() -> Self` [src]

Return `π / 3.0`.

### `fn FRAC_PI_4() -> Self` [src]

Return `π / 4.0`.

### `fn FRAC_PI_6() -> Self` [src]

Return `π / 6.0`.

### `fn FRAC_PI_8() -> Self` [src]

Return `π / 8.0`.

### `fn LN_10() -> Self` [src]

Return `ln(10.0)`.

### `fn LN_2() -> Self` [src]

Return `ln(2.0)`.

### `fn LOG10_E() -> Self` [src]

Return `log10(e)`.

### `fn LOG2_E() -> Self` [src]

Return `log2(e)`.

### `fn PI() -> Self` [src]

Return Archimedes’ constant `π`.

### `fn SQRT_2() -> Self` [src]

Return `sqrt(2.0)`.

Loading content...

## Provided methods

### `fn TAU() -> Self where
Self: Sized + Add<Self, Output = Self>,` [src]

Return the full circle constant `τ`.

### `fn LOG10_2() -> Self where
Self: Sized + Div<Self, Output = Self>,` [src]

Return `log10(2.0)`.

### `fn LOG2_10() -> Self where
Self: Sized + Div<Self, Output = Self>,` [src]

Return `log2(10.0)`.

Loading content...

## Implementors

### `impl FloatConst for f32` [src]

#### `fn E() -> Self` [src]

#### `fn FRAC_1_PI() -> Self` [src]

#### `fn FRAC_1_SQRT_2() -> Self` [src]

#### `fn FRAC_2_PI() -> Self` [src]

#### `fn FRAC_2_SQRT_PI() -> Self` [src]

#### `fn FRAC_PI_2() -> Self` [src]

#### `fn FRAC_PI_3() -> Self` [src]

#### `fn FRAC_PI_4() -> Self` [src]

#### `fn FRAC_PI_6() -> Self` [src]

#### `fn FRAC_PI_8() -> Self` [src]

#### `fn LN_10() -> Self` [src]

#### `fn LN_2() -> Self` [src]

#### `fn LOG10_E() -> Self` [src]

#### `fn LOG2_E() -> Self` [src]

#### `fn PI() -> Self` [src]

#### `fn SQRT_2() -> Self` [src]

#### `fn TAU() -> Self` [src]

#### `fn LOG10_2() -> Self` [src]

#### `fn LOG2_10() -> Self` [src]

### `impl FloatConst for f64` [src]

#### `fn E() -> Self` [src]

#### `fn FRAC_1_PI() -> Self` [src]

#### `fn FRAC_1_SQRT_2() -> Self` [src]

#### `fn FRAC_2_PI() -> Self` [src]

#### `fn FRAC_2_SQRT_PI() -> Self` [src]

#### `fn FRAC_PI_2() -> Self` [src]

#### `fn FRAC_PI_3() -> Self` [src]

#### `fn FRAC_PI_4() -> Self` [src]

#### `fn FRAC_PI_6() -> Self` [src]

#### `fn FRAC_PI_8() -> Self` [src]

#### `fn LN_10() -> Self` [src]

#### `fn LN_2() -> Self` [src]

#### `fn LOG10_E() -> Self` [src]

#### `fn LOG2_E() -> Self` [src]

#### `fn PI() -> Self` [src]

#### `fn SQRT_2() -> Self` [src]

#### `fn TAU() -> Self` [src]

#### `fn LOG10_2() -> Self` [src]

#### `fn LOG2_10() -> Self` [src]

Loading content...