type/posint - check for a positive integer
type/negint - check for a negative integer
type/nonnegint - check for a non-negative integer
type/nonposint - check for a non-positive integer
|
Calling Sequence
|
|
type(x, posint)
type(x, negint)
type(x, nonnegint)
type(x, nonposint)
|
|
Description
|
|
•
|
The functions type(x, posint), type(x, negint), type(x, nonnegint), and type(x, nonposint) return true if x is a positive, negative, non-negative, or non-positive integer, respectively. Otherwise, false is returned.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?