Trait malachite_base::num::arithmetic::traits::FloorAssign

source ·
pub trait FloorAssign {
    // Required method
    fn floor_assign(&mut self);
}
Expand description

Replaces a number with its floor.

Required Methods§

source

fn floor_assign(&mut self)

Implementations on Foreign Types§

source§

impl FloorAssign for f32

source§

fn floor_assign(&mut self)

Replaces a number with its floor.

A number’s floor is the largest integer less than or equal to the number.

$x \gets \lfloor x \rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl FloorAssign for f64

source§

fn floor_assign(&mut self)

Replaces a number with its floor.

A number’s floor is the largest integer less than or equal to the number.

$x \gets \lfloor x \rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§