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.SMALLFLOAT variables are initialized to zero in functions, modules and globals.

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

SMALLMONEY values can be converted to strings according to the DBFORMAT (or DBMONEY) environment variable.

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