check for an object of type literal - Maple Help

Online Help

All Products    Maple    MapleSim


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

type/literal - check for an object of type literal

Calling Sequence

type(x, literal)

Parameters

x

-

any expression

Description

• 

The call type(x, literal) checks to see if x is of type literal. It returns true if x is of type literal, and false otherwise.

  

An object is of type literal if it is of type integer, fraction, float, complex(numeric), or string.

• 

To verify whether an expression identically matches a specified expression, use the type/identical command.

Examples

type1,literal

true

(1)

type12,literal

true

(2)

type0.5,literal

true

(3)

typeString,literal

true

(4)

typeName,literal

false

(5)

typeab,literal

false

(6)

typeab,literal

false

(7)

type2+4I7,literal

true

(8)

See Also

type, type/atomic, type/complex, type/float, type/fraction, type/identical, type/integer, type/numeric, type/rational, type/string


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