Math & Trig
All versions
◉ 58 views
=TRUNC()
The TRUNC functions truncates a number to an integer by removing the fractional part of the number.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=TRUNC(number, [num_digits])
Hover argument names in the table for details.
Output typeNumber
Popularity50 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =TRUNC() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
number |
Any type | Required | The number you want to truncate. |
num_digits |
Any type | Optional | A number specifying the precision of the truncation. The default value for num_digits is 0 (zero). |
▣ Examples
Truncates 8.9 to return the integer part (8).
=TRUNC(8.9)
Result:
8
Truncates a negative number to return the integer part (-8).
=TRUNC(-8.9)
Result:
-8
Truncates a number between 0 and 1, returning the integer part (0).
=TRUNC(0.45)
Result:
0
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!