Any number that can be written in fraction form is a rational number. This includes integers, terminating decimals, and repeating decimals as well as fractions. So, any terminating decimal is a rational number. Any decimal number that is repeating can be written in the form a/b with b not equal to zero so it is a rational number.
I hope this helps you understand what a rational number is! Have a wonderful day!