Trait dashu::float::round::ErrorBounds

source ·
pub trait ErrorBounds: Round {
    // Required method
    fn error_bounds<const B: u64>(
        f: &FBig<Self, B>,
    ) -> (FBig<Self, B>, FBig<Self, B>, bool, bool);
}
Expand description

A trait providing the function to retrieve the error bounds of the rounded value.

Required Methods§

source

fn error_bounds<const B: u64>( f: &FBig<Self, B>, ) -> (FBig<Self, B>, FBig<Self, B>, bool, bool)

Given a floating point number f, the output (L, R, incl_L, incl_R) represents the relative error range with left bound f - L and right bound f + R. The two boolean values incl_L and incl_R represents whether the bounds f - L and f + R are inclusive respectively.

When the input number has unlimited precision, the output must be (ZERO, ZERO, true, true).

Object Safety§

This trait is not object safe.

Implementors§