QuestionQ42

VerifiedData science concepts

A Data Scientist runs this code to convert a value from one data type to another:

Question Image

What is the output?

Explanation

Snowflake rounds a FLOAT value when it is converted to an INTEGER. Therefore, casting 1.5 to IntegerType() returns 2.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!