Trait malachite_base::num::arithmetic::traits::OverflowingAbs
source · [−]pub trait OverflowingAbs {
type Output;
fn overflowing_abs(self) -> (Self::Output, bool);
}
Expand description
Takes the absolute value of a number.
Returns a tuple of the result along with a boolean indicating whether an arithmetic overflow occured. If an overflow occurred, then the wrapped number is returned.