negzero - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


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