ExactNumberQ

ExactNumberQ[expr]
returns True if expr is an exact number, and False otherwise.

ExactNumberQ can be applied to complex numbers: