ExcelFlux

TRUNC function

Truncates a number to an integer.

Math and trigonometry

Where can you use it?

Reporting, manufacturing and engineering teams. When a total, rounding step or numerical transformation is needed, use the example to see which operation fits your inputs.

Scenario in the workbook

Discard fractional packs. Negative values also truncate toward zero.

A worked example from the workbook

RowA
6Input
77.8
8-7.8
90
Record 1
=TRUNC(A7)

Expected result7

See the inputs and instructions for all 3 examples

Syntax

TRUNC(number, [num_digits])

Copyable formulas

English Excel · en-US
=TRUNC(-2.7)
Turkish Excel · tr-TR
=NSAT(-2,7)

Expected result

−2

Worked examples

Discard fractional packs. Negative values also truncate toward zero.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A
6 Input
7 7.8
8 -7.8
9 0
Case Formula Expected result
Record 1 =TRUNC(A7) 7
Record 2 =TRUNC(A8) -7
Record 3 =TRUNC(A9) 0
Microsoft Excel reference