Function creachadair_imath_sys::mp_rat_reduce
source · [−]Expand description
Reduces r
in-place to lowest terms and canonical form.
Zero is represented as 0/1, one as 1/1, and signs are adjusted so that the sign of the value is carried by the numerator.