Availability:C-language interface function
bool PL_is_rational(term_t)Returns non-zero if term is a rational number (P/Q).
Note that all integers are considered rational and this test thus
succeeds for any term for which PL_is_integer()
succeeds. See also
PL_get_mpq()
and PL_unify_mpq().