[][src]Trait lair::Real

pub trait Real: Float {
    fn copysign(self, sign: Self) -> Self;
fn recip(self) -> Self;
fn eps() -> Self;
fn sfmin() -> Self; }

A trait for real numbers.

Required methods

fn copysign(self, sign: Self) -> Self

Returns a number composed of the magnitude of self and the sign of sign.

fn recip(self) -> Self

Takes the reciprocal (inverse) of a number.

fn eps() -> Self

Relative machine precision.

fn sfmin() -> Self

Safe minimum, such that its reciprocal does not overflow.

Loading content...

Implementations on Foreign Types

impl Real for f64[src]

impl Real for f32[src]

Loading content...

Implementors

Loading content...