This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / New in Version 3.0 / Numerical Computation  /
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.
  • See the Mathematica book: Section 2.3.5Section 3.1.2.
  • See also: NumberQ.

    Further Examples

    In[1]:=

    Out[1]=

    In[2]:=

    Out[2]=

    In[3]:=

    Out[3]=

    Because Pi and E are numeric, you can operate with them much as you can with other numbers.

    In[4]:=

    Out[4]=

    In[5]:=

    Out[5]=