Returns a number rounded to the specified number of decimal places by discarding subsequent digits.
numInitial fractional number
decimalsNumber of decimal places to round a number
Examples
SELECT TRUNCATE(22.29, 0);
SELECT TRUNCATE(22.29, 1);
SELECT TRUNCATE(22.29, -1);