pub struct Away;Expand description
Round away from 0
Trait Implementations§
source§impl ErrorBounds for Away
impl ErrorBounds for Away
source§fn error_bounds<const B: u64>(
f: &FBig<Away, B>,
) -> (FBig<Away, B>, FBig<Away, B>, bool, bool)
fn error_bounds<const B: u64>( f: &FBig<Away, B>, ) -> (FBig<Away, B>, FBig<Away, 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. Read moresource§impl Round for Away
impl Round for Away
source§fn round_low_part<F>(
integer: &IBig,
low_sign: Sign,
_low_half_test: F,
) -> Rounding
fn round_low_part<F>( integer: &IBig, low_sign: Sign, _low_half_test: F, ) -> Rounding
Calculate the rounding of the number (integer + rem), assuming rem != 0 and |rem| < 1.
low_half_test should tell |rem|.cmp(0.5)impl Copy for Away
Auto Trait Implementations§
impl Freeze for Away
impl RefUnwindSafe for Away
impl Send for Away
impl Sync for Away
impl Unpin for Away
impl UnwindSafe for Away
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more