FLOAT Data Type
Last updated
Last updated
The
FLOAT
data type is a subtype ofNUMBER
. It can be specified with or without precision, which has the same definition it has forNUMBER
and can range from 1 to 126. Scale cannot be specified but is interpreted from the data. ()
Please be aware that every operation performed on numerical datatypes is internally stored as a Number. Furthermore, depending on the operation performed it is possible to incur an error related to how intermediate values are stored within Snowflake, for more information please check this post on .
Please, consider the following table and its inserts for the examples below:
There are no differences between Oracle and Snowflake regarding FLOAT data type without precision.
Queries results may not be equivalent when the precision (p) is specified in theFLOAT
data type. There are small rounding differences.
When the FLOAT data type has precision, the queries results may have small rounding differences.
No related EWIs.