Trait malachite_base::num::arithmetic::traits::FloorAssign
source · [−]pub trait FloorAssign {
fn floor_assign(&mut self);
}
Expand description
Replaces a number with its floor.
Required Methods
fn floor_assign(&mut self)
Implementations on Foreign Types
sourceimpl FloorAssign for f32
impl FloorAssign for f32
sourcefn floor_assign(&mut self)
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.
sourceimpl FloorAssign for f64
impl FloorAssign for f64
sourcefn floor_assign(&mut self)
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.