Which of the following is the definition of a rational number?
A.
a number that has a multiplicative inverse
B.
a number that can be written as a nonterminating or nonrepeating decimal
C.
a number that is divisible by only 1 and itself
D.
a number that can be written as a ratio of two integers