Function std::num::abs

pub fn abs<T: Signed>(value: T) -> T