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