TRUNCATE (Lakehouse v2)
Truncates a number to a specified number of decimal places.
Analyze Syntax
Section titled “Analyze Syntax”func.truncate(<x>, <d>)Analyze Examples
Section titled “Analyze Examples”func.truncate(3.14159, 2)
┌──────┐│ 3.14 │└──────┘SQL Syntax
Section titled “SQL Syntax”TRUNCATE(<x>, <d>)SQL Examples
Section titled “SQL Examples”SELECT TRUNCATE(3.14159, 2);
┌──────┐│ 3.14 │└──────┘