Canonical: https://knowlpedia.com/shared-foundations/rational-numbers/

# Rational numbers

Numbers expressible as a ratio of two integers with nonzero denominator.

The **rational numbers** are the [set](https://knowlpedia.com/shared-foundations/set/) \(\mathbb{Q}\) of fractions \(p/q\) with \(p,q\in\mathbb{Z}\) and \(q\ne 0\), where \(p/q\) and \(p'/q'\) represent the same rational number exactly when \(pq'=p'q\).

## Remarks

One way to formalize this identification is to view \(\mathbb{Q}\) as a [quotient set](https://knowlpedia.com/shared-foundations/quotient-set/) of [ordered pairs](https://knowlpedia.com/shared-foundations/ordered-pair/) of [integers](https://knowlpedia.com/shared-foundations/integers/) under an [equivalence relation](https://knowlpedia.com/shared-foundations/equivalence-relation/). The rationals embed into the [real numbers](https://knowlpedia.com/shared-foundations/real-numbers/).

## Examples

- \(\frac{2}{3}\) and \(-\frac{7}{4}\) are rational numbers.
- Every integer \(n\) corresponds to the rational number \(n/1\).
