Definition · applies to numbers

Elementary

A rational number is a number that can be written as a fraction of whole numbers, or the negative of one.

High school

A rational number is a number that can be written as $p/q$, where $p$ and $q$ are integers and $q \neq 0$.

Undergraduate

A rational number is an element of $\rationals$, constructed as equivalence classes of pairs $(p, q)$ of integers such that $q \neq 0$, where $(p, q) \sim (r, s)$ if $p s = q r$.

Examples

Examples

  • $\frac{1}{2}$ and $\frac{2}{4}$ represent the same rational number.
  • ✓ $1/2$ High school
    $1/2$ is a rational number because it can be written as a ratio of $1$ and $2$.
  • ✓ $2$ High school
    $2$ is rational number because it can be written as a ratio of two integers: $2/1$.

Non-examples
Things that may be mistaken for examples of this term.

  • ✗ $\pi$ Elementary
    $\pi$ is not a rational number, because it is not a ratio of two integers.
  • ✗ $i = \sqrt{-1}$ High school
    $i$ is not rational, because it is not a real number.
  • ✗ $\sqrt{2}$ High school
    $\sqrt{2}$ is not a rational number, because $\sqrt{2}$ is irrational: $\sqrt{2}$ is not a ratio of integers.

Properties

  • A real number is rational if and only if its decimal expansion either ends or repeats.
  • Between every two real numbers there is a rational number: $\rationals$ is dense in $\reals$.

Distinctions involving this term

All definitions · All distinctions · All examples · Notation