FLOAT
FLOAT [(bin_prec)]
Parameter | Description |
---|---|
bin_prec |
Precision in binary digits, default is 24 1 - 24: 32-bit single precision25 - 53: 64-bit double precision |
The FLOAT
data type defaults to a 32-bit single precision floating-point type with an approximate precision of 7 decimal digits after the decimal point (24 binary digits).To ensure the safety of storage, rely on 6 decimal digits of precision.
The syntax FLOAT(bin_prec)
behaves as follows:
-
1 <= _bin_prec <= 23: 32-bit single precision (synonym for
FLOAT
) -
25 <= _bin_prec <= 53: 64-bit double precision (synonym for
DOUBLE PRECISION
)
The behaviour of FLOAT
(without explicit precision) behaves as the SQL standard type [fblangref50-datatypes-real].
Note
|
Compatibility Notes
|