identify which condition needs necessary for a number to be rational

it must not be an endless decimal
it must not be negative
it must be able to express as an integer divided by a nonzero integer
it must be written as a fraction

The necessary condition for a number to be rational is that it can be written as a fraction.