A number that terminates when written as a decimal is rational.