IsNumber
Tests if an object is a number.
Syntax
-
IsNumber(X)
-
X
is any object
-
Description
IsNumber(X)
returns true
iff X
is a number. Typewise, this includes integers, rational numbers, real numbers, and complex numbers.
Examples
IsNumber(π)
true
IsNumber(IdentityMatrix(1))
false
IsNumber("[not] a particularly long conversation.")
false
IsNumber(i^i)
true