Trait malachite_base::num::basic::traits::OneHalf

source ·
pub trait OneHalf {
    const ONE_HALF: Self;
}
Expand description

Provides the constant 1/2.

Required Associated Constants§

source

const ONE_HALF: Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl OneHalf for f32

The constant 1/2.

source§

const ONE_HALF: f32 = 0.5f32

source§

impl OneHalf for f64

The constant 1/2.

source§

const ONE_HALF: f64 = 0.5f64

Implementors§