Trait concrete_core::numeric::FloatingPoint[][src]

pub trait FloatingPoint: Numeric + Neg<Output = Self> + Add<Self, Output = Self> + AddAssign<Self> + Div<Self, Output = Self> + DivAssign<Self> + Mul<Self, Output = Self> + MulAssign<Self> + Rem<Self, Output = Self> + RemAssign<Self> + Sub<Self, Output = Self> + SubAssign<Self> {
    fn powi(self, power: i32) -> Self;
fn round(self) -> Self;
fn fract(self) -> Self;
fn rem_euclid(self, rhs: Self) -> Self;
fn sqrt(self) -> Self;
fn ln(self) -> Self;
fn abs(self) -> Self;
fn floor(self) -> Self;
fn to_bit_string(&self) -> String; }

A trait shared by all the floating point types.

Required methods

fn powi(self, power: i32) -> Self[src]

Raises a float to an integer power.

fn round(self) -> Self[src]

Rounds the float to the closest integer.

fn fract(self) -> Self[src]

Keeps the fractional part of the number.

fn rem_euclid(self, rhs: Self) -> Self[src]

Remainder of the euclidean division.

fn sqrt(self) -> Self[src]

Returns the square root of the input float.

fn ln(self) -> Self[src]

Returns the natural logarithm of the input float.

fn abs(self) -> Self[src]

Returns the absolute value of the input float.

fn floor(self) -> Self[src]

Returns the floor value of the input float.

fn to_bit_string(&self) -> String[src]

Returns a bit representation of the float, with the sign, exponent, and mantissa bits separated by whitespaces for increased readability.

Loading content...

Implementations on Foreign Types

impl FloatingPoint for f64[src]

impl FloatingPoint for f32[src]

Loading content...

Implementors

Loading content...