P_ValuationRat

For a rational number r and a rational prime number p, P_ValuationRat(r, p) returns the value of the p-valuation of r. For example,
gap>  P_ValuationRat(120/21, 7);
-1