TYPECONV Function

Converts data types for numeric arrays.

Usage

result = TYPECONV(t, x) 

Input Parameters

t—A numeric data type code, which can have the following values:

Data Type Codes

Code

Definition

1

BYTE

2

INT

13

INT32

3

LONG

4

FLOAT

5

DOUBLE

6

COMPLEX

12

DCOMPLEX

x—An array containing the values to convert.

Returned Value

result—Array x, converted to type t.

Keywords

Trans—If set, result is also transposed.