NumberQ

NumberQ[expr]

gives True if expr is a number, and False otherwise.

Details

Examples

open allclose all

Basic Examples  (1)

NumberQ tests whether an object is explicitly a number:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (3)

Applications  (2)

Properties & Relations  (2)

See Also

NumericQ  IntegerQ  MachineNumberQ  TrueQ  Complexes  Assuming

Tutorials

Introduced in 1988
(1.0)
| Updated in 1996
(3.0)