pub trait Abs {
    type Output;

    fn abs(self) -> Self::Output;
}
Expand description

Absolute value.

Examples

use dashu_base::Abs;
assert_eq!((-5).abs(), 5);

Required Associated Types

Required Methods

Implementations on Foreign Types

Implementors