type/positive
check for a positive number
type/negative
check for a negative number
type/nonnegative
check for a non-negative number
type/nonpositive
check for a non-positive number
Calling Sequence
Parameters
Description
Examples
type(x, positive)
type(x, negative)
type(x, nonnegative)
type(x, nonpositive)
x
-
numeric type
The functions type(x, positive), type(x, negative), type(x, nonnegative), and type(x, nonpositive) return true if x is a positive, negative, non-negative, or non-positive extended_numeric number, respectively. Otherwise, false is returned.
type⁡0,positive
false
type⁡−1.79,negative
true
type⁡0,nonnegative
type⁡−∞,nonpositive
type⁡x2,nonnegative
type⁡sqrt⁡8,positive
See Also
type
type/extended_numeric
type/negint
type/nonnegint
type/nonposint
type/numeric
type/posint
Download Help Document