type/numeric - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

type/numeric

check for an object of type numeric

type/extended_numeric

check for an object of type extended_numeric

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, numeric)

type(x, extended_numeric)

Parameters

x

-

any expression

Description

• 

The type(x, numeric) function returns true if x is an integer, fraction, or finite floating-point number.

• 

The type(x, extended_numeric) function returns true if x is a numeric, infinity, -infinity, or undefined.

  

Note:  Float(infinity) and Float(undefined) are of type extended_numeric, but not of type numeric.

Examples

type1,numeric

true

(1)

type12,numeric

true

(2)

type0.5,numeric

true

(3)

typeName,numeric

false

(4)

typeab,numeric

false

(5)

type∞,extended_numeric

true

(6)

typeFloatundefined,numeric

false

(7)

typeFloatundefined,extended_numeric

true

(8)

See Also

infinity

type

type/finite

type/float

type/fraction

type/infinity

type/integer

type/rational

type/realcons

type/undefined

undefined

 


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