type/poszero - Maple Help

Online Help

All Products    Maple    MapleSim


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

type/poszero

check for an object of type positive zero

type/negzero

check for an object of type negative zero

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, poszero)

type(x, negzero)

Parameters

x

-

any expression

Description

• 

The type(x, poszero) function returns true iff x is either 0 or +0.0. Otherwise, false is returned.

• 

The type(x, negzero) function returns true iff x is -0.0. Otherwise, false is returned.

Examples

type0,poszero

true

(1)

typeln1.,poszero

true

(2)

typeln1.+0.I,poszero

false

(3)

typeln1.+0.I,poszero

false

(4)

type0+0,poszero

true

(5)

type0.+0,poszero

false

(6)

type0.+0,negzero

true

(7)

See Also

Im

infinity

numerics

Re

type

type/extended_numeric

type/nonreal

 


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