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 ratio of two integers

C. A number that can be written as a nonterminating or nonrepeating decimal