• NumericQ[expr] gives True if expr is a numeric quantity, and False otherwise.
Notes
• An expression is considered a numeric quantity if it is either an explicit number or a mathematical constant such as Pi, or is a function that has attribute NumericFunction and all of whose arguments are numeric quantities.
• In most cases, NumericQ[expr] gives True whenever N[expr] would yield an explicit number.