Function · Rounding
Excel TRUNC function
The Excel TRUNC function cuts off extra digits toward zero. TRUNC(-2.9) is -2. INT(-2.9) is -3.
Syntax =TRUNC(number, [num_digits])
=TRUNC(-2.9)Arguments
| Name | Required | What to pass |
|---|---|---|
| number | Required | The number to cut. |
| num_digits | Optional | Decimal places to keep. The default is 0. Extra digits are dropped, not used for rounding. A negative number of digits cuts to the left of the decimal point. |
Examples
Cut -2.9 toward zero
=TRUNC(-2.9)Result -2
| A | B | |
|---|---|---|
| 1 | Value | -2.9 |
| 2 | Truncated | -2 |
TRUNC drops extra digits and moves toward zero. -2.9 becomes -2, not -3. That is the difference from INT, which always goes down the number line. INT(-2.9) is -3. On a positive number the two agree: TRUNC(2.9) and INT(2.9) are both 2.
A second argument keeps decimal places. TRUNC(19.996, 2) is 19.99. ROUND(19.996, 2) is 20, because ROUND looks at the next digit and TRUNC does not. ROUNDDOWN of a positive number matches TRUNC. ROUNDDOWN of a negative number also moves toward zero, so for this job the two are the same. Use TRUNC when the leftover fraction should disappear rather than change the last kept digit. COMBIN cuts both arguments the same way before it counts. COMBIN(10.9, 3.2) is COMBIN(10, 3), which is 120.