use num::traits::Signed;
use std::cmp::PartialOrd;

use crate::cprelude;
impl <T: Signed + PartialOrd> cprelude::CloseEnough for T {
    fn is_close_enough_to(self, other: Self, tolerance: Self) -> bool {
        (self - other).abs() <= tolerance
    }
}