type/positive - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/posneg

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

Calling Sequence

type(x, positive)

type(x, negative)

type(x, nonnegative)

type(x, nonpositive)

Parameters

x

-

numeric type

Description

• 

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.

Examples

type0,positive

false

(1)

type1.79,negative

true

(2)

type0,nonnegative

true

(3)

type∞,nonpositive

true

(4)

typex2,nonnegative

false

(5)

type8,positive

false

(6)

See Also

type

type/extended_numeric

type/negint

type/nonnegint

type/nonposint

type/numeric

type/posint

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam