(FLOAT(arg))
Converts a number with a TEXT, INTEGER, or CURRENCY data type to a value with a REAL or DOUBLE data type. This is not the same as the FLOAT data type.
Example: 01
In the following example, the value of vfloat1 is 2., a number that has a REAL data type, and the value of vfloat2 is also 2., a number that has a DOUBLE data type. If a variable is not assigned a data type, it becomes DOUBLE.
SET VAR vfloat1 REAL = (FLOAT(2))
SET VAR vfloat2 = (FLOAT(2))
Example 02:
In the following example a BIGNUM value is converted to a CURRENCY value.
SET VAR vBN_Data BIGNUM (18,2) = 1234.56
SET VAR vCurr_Data CURRENCY = ($1 * (FLOAT(CTXT(.vBN_Data))))