Skip to main content

compare_fixed

Function compare_fixed 

Source
pub fn compare_fixed<I1, const F1: usize, I2, const F2: usize>(
    lhs: Fixed<I1, F1>,
    rhs: Fixed<I2, F2>,
) -> Ordering
where I1: Into<i128> + Copy, I2: Into<i128> + Copy,
Expand description

Compares two fixed-point numbers with potentially different underlying types and fractional resolutions.