From what I have learnt:
The number has an ending so it is rational
Irrational numbers don't end, e.g. π (3.1415926...)