Function fixed_decimal::ops::i16_abs_sub

source ยท
pub fn i16_abs_sub(a: i16, b: i16) -> u16
Expand description

Computes a - b where a >= b.

Overflow cannot occur because the result is unsigned.

This is similar to abs_diff but with the additional constraint that a >= b.

If a < b, panics in debug mode and wraps in release mode.