Skip to content

Truncates a number to a specified number of decimal places.

func.truncate(<x>, <d>)
func.truncate(3.14159, 2)
┌──────┐
3.14
└──────┘
TRUNCATE(<x>, <d>)
SELECT TRUNCATE(3.14159, 2);
┌──────┐
3.14
└──────┘