Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > F

FLOAT

Scroll Prev Top Next More

(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.

 

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))