COF-C02 · Question #635
Which data type can be used for floating-point numbers without losing precision?
The correct answer is D. DOUBLE. DOUBLE (also aliased as FLOAT or REAL in Snowflake) is a 64-bit IEEE 754 double-precision floating-point type, offering approximately 15–17 significant decimal digits of precision. Among the choices provided, it is the only type designed to represent fractional/floating-point…
Question
Which data type can be used for floating-point numbers without losing precision?
Options
- ABINARY
- BVARIANT
- CINTEGER
- DDOUBLE
How the community answered
(43 responses)- A5% (2)
- B2% (1)
- C2% (1)
- D91% (39)
Explanation
DOUBLE (also aliased as FLOAT or REAL in Snowflake) is a 64-bit IEEE 754 double-precision floating-point type, offering approximately 15–17 significant decimal digits of precision. Among the choices provided, it is the only type designed to represent fractional/floating-point values. BINARY stores raw byte sequences, VARIANT stores semi-structured data (JSON/XML/Avro), and INTEGER stores only whole numbers without any fractional component. While true arbitrary-precision decimal storage would use NUMERIC/NUMBER/DECIMAL types, DOUBLE is the correct answer here given the available options and is Snowflake's highest-precision floating-point type.
Topics
Community Discussion
No community discussion yet for this question.