av_nearer_q

Find which of the two rationals is closer to another rational.

@param q Rational to be compared against @param q1,q2 Rationals to be tested @return One of the following values: - 1 if q1 is nearer to q than q2 - -1 if q2 is nearer to q than q1 - 0 if they have the same distance

extern (C) @nogc nothrow
int
av_nearer_q

Meta