Trait FloorAssign
Source pub trait FloorAssign {
// Required method
fn floor_assign(&mut self);
}
Expand description
Replaces a number with its floor.
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.
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.