Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Testing Expressions >

NumericQ

NumericQ[expr]
gives True if expr is a numeric quantity, and False otherwise.
  • 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.
New in 3
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team