Function

Gst-1.0Gstutil_fraction_compare

  • Compares the fractions a_n/a_d and b_n/b_d and returns -1 if a < b, 0 if a = b and 1 if a > b.

    Parameters

    • a_n: number

      Numerator of first value

    • a_d: number

      Denominator of first value

    • b_n: number

      Numerator of second value

    • b_d: number

      Denominator of second value

    Returns number

    -1 if a < b; 0 if a = b; 1 if a > b.