fraction_compare


Description:


public int fraction_compare (int a_n, int a_d, int b_n, int b_d)

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

Numerator of first value

a_d

Denominator of first value

b_n

Numerator of second value

b_d

Denominator of second value

Returns:

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


Namespace: Gst.Util
Package: gstreamer-1.0