DatatypeToStr


The DatatypeToStr function returns the data type name corresponding to the numeric data type code. For example passing 5 returns "float".

Syntax

sName = DatatypeToStr( number )

where

    numberis the data type code from the Data Types table.

    sName is the data type name from the Data Types table.

Example

The script below returns the name corresponding to data type number 5:

t = 5

-- data type number 5

s = DatatypeToStr( t )

-- get the corresponding name string

Printf("type=%d, name=%s", t, s )

-- result: type=5, name="float"

Related Topics

StrToDatatype

CImage:SetDatatype

CImage:Datatype

Mira Data Types