Excel function

TRUNCfunction

Truncates a number by cutting off the decimal part.

All versions
=TRUNC(A2)
A
B
1
2
3
4
5
6
7

Click a cell in the table to change number. Click -7.89 and compare with INT (-8). Try breaking it on purpose to see the errors.

Result

3

number
A2You can also click a cell in the table

The cell with the number to calculate. Click another value in the table.

num_digits

How many decimals to keep. If omitted, 0 (an integer).

What is the TRUNC function?

=TRUNC(number, [num_digits])

TRUNC cuts off the decimal part of a number. It does not round; it just drops digits.

According to Microsoft, TRUNC and INT differ only for negative numbers: TRUNC(-4.3) is -4 and INT(-4.3) is -5. Check with -7.89 and -2.5 in the table.

TRUNC drops the decimals of amounts at a fixed place. A negative second argument cuts to the left of the decimal point: to the nearest 10, 100 or 1,000 below. Whether to cut or round fractions is a business rule, so check yours first.

Arguments

number
The number or cell to truncate.
num_digits
Optional. How many decimals to keep. The default is 0.

TRUNC examples

  1. Example 1. Integer part

    =TRUNC(8.9)

    8.

  2. Example 2. Negative

    =TRUNC(-8.9)

    -8. INT(-8.9) is -9.

  3. Example 3. Keep two decimals

    =TRUNC(3.14159, 2)

    3.14.

  4. Example 4. Cutting an amount

    =TRUNC(A2, -3)

    Results when A2 is 123,456.78. Each step down drops one more digit.

    FormulaResultMeaning
    =TRUNC(A2, 1)123,456.7Keep one decimal
    =TRUNC(A2)123,456Drop the cents
    =TRUNC(A2, -2)123,400Drop below 100
    =TRUNC(A2, -3)123,000Drop below 1,000
  5. Example 5. Tax with fractions of a cent dropped

    =TRUNC(B2*0.08, 2)

    If your rule drops fractions of a cent, 8% of $45.67 is 3.6536, which becomes $3.65.

Common mistakes

FAQ

How is it different from ROUNDDOWN?
The results are the same; TRUNC just lets you omit num_digits.
How do I get only the decimal part?
Use =A2-TRUNC(A2).
How do I cut upward instead?
Use ROUNDUP. =ROUNDUP(A2, -3) rounds up to the next 1,000.