Trait numcodecs_round::Float

source ·
pub trait Float:
    Copy
    + Mul<Self, Output = Self>
    + Div<Self, Output = Self> {
    // Required method
    fn round(self) -> Self;
}
Expand description

Floating point types

Required Methods§

source

fn round(self) -> Self

Returns the nearest integer to self. If a value is half-way between two integers, round away from 0.0.

This method always returns the precise result.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Float for f32

source§

fn round(self) -> Self

source§

impl Float for f64

source§

fn round(self) -> Self

Implementors§