Trait std::num::Float

pub trait Float: Real + Signed + Primitive + ApproxEq<Self> {
    fn nan() -> Self;
    fn infinity() -> Self;
    fn neg_infinity() -> Self;
    fn neg_zero() -> Self;
    fn is_nan(&self) -> bool;
    fn is_infinite(&self) -> bool;
    fn is_finite(&self) -> bool;
    fn is_normal(&self) -> bool;
    fn classify(&self) -> FPCategory;
    fn mantissa_digits(unused_self: Option<Self>) -> uint;
    fn digits(unused_self: Option<Self>) -> uint;
    fn epsilon() -> Self;
    fn min_exp(unused_self: Option<Self>) -> int;
    fn max_exp(unused_self: Option<Self>) -> int;
    fn min_10_exp(unused_self: Option<Self>) -> int;
    fn max_10_exp(unused_self: Option<Self>) -> int;
    fn ldexp(x: Self, exp: int) -> Self;
    fn frexp(&self) -> (Self, int);
    fn exp_m1(&self) -> Self;
    fn ln_1p(&self) -> Self;
    fn mul_add(&self, a: Self, b: Self) -> Self;
    fn next_after(&self, other: Self) -> Self;
}

Primitive floating point numbers

Required Methods

fn nan() -> Self

fn infinity() -> Self

fn neg_infinity() -> Self

fn neg_zero() -> Self

fn is_nan(&self) -> bool

fn is_infinite(&self) -> bool

fn is_finite(&self) -> bool

fn is_normal(&self) -> bool

fn classify(&self) -> FPCategory

fn mantissa_digits(unused_self: Option<Self>) -> uint

fn digits(unused_self: Option<Self>) -> uint

fn epsilon() -> Self

fn min_exp(unused_self: Option<Self>) -> int

fn max_exp(unused_self: Option<Self>) -> int

fn min_10_exp(unused_self: Option<Self>) -> int

fn max_10_exp(unused_self: Option<Self>) -> int

fn ldexp(x: Self, exp: int) -> Self

fn frexp(&self) -> (Self, int)

fn exp_m1(&self) -> Self

fn ln_1p(&self) -> Self

fn mul_add(&self, a: Self, b: Self) -> Self

fn next_after(&self, other: Self) -> Self

Implementors