You can convert from one data type to another by casting. A cast is denoted by type, where the type is int, float, and so on, as shown in the following example:
int
float
int x = 1; real y = 3.14159; int z = x+((int) y); /* z = 4 */
Release 18.2 - © ANSYS, Inc. All rights reserved.