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.
type0,positive
false
type−1.79,negative
true
type0,nonnegative
type−∞,nonpositive
typex2,nonnegative
typesqrt8,positive
See Also
type
type/extended_numeric
type/negint
type/nonnegint
type/nonposint
type/numeric
type/posint
Download Help Document