ANY_..._TO Conversions

General Information

For general hints to be considered during type conversion, refer to the chapter Type Conversion Functions.

Definition

Conversion from any data type, or more specifically from any numeric data type to another data type. As with any type of conversion, the size of the operands must be taken into account in order to have a successful conversion.

Syntax

ANY_NUM_TO_<numeric data type>

ANY_TO_<any data type>

Example

Conversion from a variable of data type REAL to INT:

re : REAL := 1.234;
i : INT := ANY_TO_INT(re)