Trait malachite_base::num::arithmetic::traits::Floor

source ·
pub trait Floor {
    type Output;

    // Required method
    fn floor(self) -> Self::Output;
}
Expand description

Takes the floor of a number.

Required Associated Types§

Required Methods§

source

fn floor(self) -> Self::Output

Implementations on Foreign Types§

source§

impl Floor for f32

source§

fn floor(self) -> f32

This is a wrapper over the floor functions in libm.

§

type Output = f32

source§

impl Floor for f64

source§

fn floor(self) -> f64

This is a wrapper over the floor functions in libm.

§

type Output = f64

Implementors§