TO_DOUBLE¶
TO_DOUBLE(COLUMN_EXPRESSION)
Converts a numeric or string expression to a double-precision floating-point number.
For NULL
input, the result is NULL
.
Fixed-point numbers are converted to floating point; the conversion cannot
fail, but might result in loss of precision.
Strings are converted as decimal or integer numbers. Scientific notation
and special values (nan, inf, infinity) are accepted, case insensitive.
Example:
We are given table1
with columns a
and b