type/extended_rational
check for an object of type extended_rational
Calling Sequence
Parameters
Description
Subtypes
Supertypes
Examples
type(x, extended_rational)
x
-
any expression
The type(x, extended_rational) function returns true if x is a rational, infinity, -infinity, or undefined. Equivalently, x is of type extended_rational if it is of type extended_numeric and not of type float.
type/rational
type/extended_numeric
type⁡1,extended_rational
true
type⁡12,extended_rational
type⁡0.5,extended_rational
false
type⁡Name,extended_rational
type⁡ab,extended_rational
type⁡∞,extended_rational
See Also
infinity
type
type/fraction
type/infinity
type/integer
type/numeric
type/undefined
undefined
Download Help Document