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§
source§impl FloorAssign for f32
impl FloorAssign for f32
source§fn 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.
source§impl FloorAssign for f64
impl FloorAssign for f64
source§fn 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.