type/integer
check for an object of type integer
Calling Sequence
Parameters
Description
Subtypes
Supertypes
Examples
type(x, integer)
type(x, integer[n])
type(x, integer[a..b])
x
-
any expression
n
1, 2, 4, or 8
a, b
integers with a≤b
The type(x, integer) function returns true if x is a Maple integer.
If the type is provided with a single integer index n, then type(expr, integer[n]) returns true if, and only if, n is one of 1, 2, 4, or 8, and expr is an integer representable as a signed n-byte hardware integer.
The call type(expr, integer[a .. b]) returns true if, and only if, expr is an integer satisfying the inequalities a≤expr and expr≤b, where a and b are integers with a≤b.
type/posint, type/negint, type/nonposint, type/nonnegint
type/rational
type⁡1,integer
true
type⁡12,integer
false
type⁡0.5,integer
type⁡String,integer
type⁡Name,integer
type⁡ab,integer
type⁡200,integer1
type⁡300,integer1
type⁡300,integer2
type⁡5,integer1..10
type⁡5,integer6..10
type⁡5.0,integer1..10
map⁡type,−129,−128,127,128,integer1
false,true,true,false
See Also
integer
type
type/atomic
type/even
type/literal
type/numeric
type/odd
Download Help Document