numcodecs_round

Function round

Source
pub fn round<T: Float, S: Data<Elem = T>, D: Dimension>(
    data: ArrayBase<S, D>,
    precision: Positive<T>,
) -> Array<T, D>
Expand description

Rounds the input data using c = round(x / precision) * precision