Trait malachite_base::num::arithmetic::traits::CeilingAssign

source ·
pub trait CeilingAssign {
    // Required method
    fn ceiling_assign(&mut self);
}
Expand description

Replaces a number with its ceiling.

Required Methods§

source

fn ceiling_assign(&mut self)

Implementations on Foreign Types§

source§

impl CeilingAssign for f32

source§

fn ceiling_assign(&mut self)

Replaces a number with its ceiling.

A number’s ceiling is the smallest integer greater than or equal to the number.

$x \gets \lceil x \rceil$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

source§

impl CeilingAssign for f64

source§

fn ceiling_assign(&mut self)

Replaces a number with its ceiling.

A number’s ceiling is the smallest integer greater than or equal to the number.

$x \gets \lceil x \rceil$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§