type/numeric
check for an object of type numeric
Calling Sequence
Parameters
Description
Subtypes
Supertypes
Examples
type(x, numeric)
x
-
any expression
The type(x, numeric) function returns true if x is an integer, fraction, or finite floating-point number.
type/rational
type/extended_numeric, type/finite, type/literal
type⁡1,numeric
true
type⁡12,numeric
type⁡1.5,numeric
type⁡Name,numeric
false
type⁡ab,numeric
type⁡∞,numeric
type⁡∞,extended_numeric
type⁡Float⁡undefined,numeric
type⁡Float⁡undefined,extended_numeric
See Also
infinity
type
type/extended_numeric
type/finite
type/float
type/fraction
type/infinity
type/integer
type/realcons
type/undefined
undefined
Download Help Document