DOUBLE data type provides 8-byte storage for numbers using IEEE
DOUBLE PRECISION can be used synonymously
DOUBLE, and the documentation for this topic is identical to the
documentation for the
DOUBLE PRECISION topic.
Here are several usage notes for the
DOUBLE PRECISION data
- The following range limitations apply:
Limit type Limitation Smallest
These limits are different from the
java.lang.DoubleJava type limits.
- An exception is thrown when any double value is calculated or entered that is outside of these value ranges. Arithmetic operations do not round their resulting values to zero. If the values are too small, you will receive an exception.
- Numeric floating point constants are limited to a length of 30
-- this example will fail because the constant is too long: values 01234567890123456789012345678901e0;
- When mixed with other data types in expressions, the resulting data type follows the rules shown in Storing values of one numeric data type in columns of another numeric data type.
Corresponding Compile-time Java Type
JDBC Metadata Type (java.sql.Types)
3421E+09 425.43E9 9E-10 4356267544.32333E+30