Approximate numerics#
Approximate-number data types are values where the precision is preserved and the scale can float:
float, real and the double precision synonym of float.
float and real#
Approximate-number data types for use with floating point numeric data. Floating point data is approximate; therefore, not all values in the data type range can be represented exactly.
Data type |
Range |
Storage |
|---|---|---|
float |
|
Depends on the value of n |
real |
|
4 Bytes |
Syntax:
float [ (n) ] Where n is the number of bits that are used to store the mantissa of the float number in scientific notation and, therefore, dictates the precision and storage size. If n is specified, it must be a value between 1 and 53. The default value of n is 53.