type/float - check for an object of type float
type/sfloat - check for an object of type sfloat
type/hfloat - check for an object of type hfloat
type/float[] and type/float[8] - check for an object of type float[] or float[8]
|
Calling Sequence
|
|
type(x, float)
type(x, sfloat)
type(x, hfloat)
type(x, float[])
type(x, float[8])
|
|
Description
|
|
•
|
The type(x, sfloat) function returns true if x is a Maple software float. Otherwise, false is returned.
|
•
|
The type(x, float[]), type(x, float[8]), and type(x, hfloat) functions return true if x is a Maple hardware float.
|
•
|
The "8" in float[8] refers to the number of bytes allocated for the hardware floating-point number. Only double precision floats (8 bytes) are currently supported. The types float[], float[8], and are synonymous with one another.
|
•
|
The type(x, float) function returns true if x is of type sfloat or hfloat (or float[] or float[8]).
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
>
|
|
| (16) |
|
|
Download Help Document
Was this information helpful?