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