The rational numbers are the Q\mathbb{Q} of fractions p/qp/q with p,q∈Zp,q\in\mathbb{Z} and q≠0q\ne 0, where p/qp/q and p′/q′p'/q' represent the same rational number exactly when pq′=p′qpq'=p'q.

Remarks

One way to formalize this identification is to view Q\mathbb{Q} as a of of under an . The rationals embed into the .

Examples
  • 23\frac{2}{3} and −74-\frac{7}{4} are rational numbers.
  • Every integer nn corresponds to the rational number n/1n/1.