An irrational number is nonterminating when written as a decimal. However, a number that has a repeating decimal is rational.