SMALLFLOAT

The SMALLFLOAT data type stores values as single-precision floating-point binary numbers with up to 8 significant digits.

Syntax

SMALLFLOAT
  1. SMALLFLOAT and REAL are synonyms.

Usage

The storage of SMALLFLOAT variables is based on 4 bytes of signed data ( =32 bits), this type is equivalent to the float data type in C.

Note: This data type is not recommended for exact decimal storage; use the DECIMAL data type instead.

SMALLFLOAT variables are initialized to zero in functions, modules and globals.

SMALLFLOAT values can be converted to strings based on the DBFORMAT (or DBMONEY) environment variable setting.

Data type conversion can be controlled by catching the runtime exceptions. For more details, see Handling type conversion errors.