Module malachite_base::num::arithmetic::floor
source · Expand description
Floor
and FloorAssign
, traits for computing the
floor of a number.
§floor_assign
use malachite_base::num::arithmetic::traits::FloorAssign;
let mut x = 1.5f32;
x.floor_assign();
assert_eq!(x, 1.0);
let mut x = -1.5f32;
x.floor_assign();
assert_eq!(x, -2.0);