d2q
converts from real to rational,
q2d
converts from rational to real,
q2q
canonicalizes (no common factors in numerator and denominator)
rationals,
z2q
converts integer numerator and denominator to rational
canonicalizing if canonicalize = TRUE
(the default).