The necessary condition for a number to be rational is:
It must be able to be expressed as an integer divided by a nonzero integer.
This definition encompasses all rational numbers, as they can be represented in the form of a fraction (numerator/denominator) where the denominator is not zero.