TRUNC Function
Truncate a number to an integer or to a given number of digits by removing its fractional part. number is the number to truncate, and num_digits is the number of decimal places to keep (0 when omitted); a negative num_digits truncates to the left of the decimal point. Unlike INT, TRUNC does not round negative numbers down: TRUNC(-1.789) returns -1.
Syntax
TRUNC(number, num_digits)
Category: Math. Minimum arguments: 1. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=TRUNC(1.234,2)
The formula returns 1.23.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.