NumberQ
NumberQ[expr] gives True if expr is an explicit number, and False otherwise.
Examples
Test explicit numbers:
NumberQ[42]
(* True *)NumberQ[3.14]
(* True *)Symbolic constants are not explicit numbers:
NumberQ[Pi]
(* False *)Something isn't working? Report an issue.
Please visit the official Wolfram Language Reference for more details.