=TRUNC(value, [places])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
| Parameter | Required | Description |
|---|---|---|
| value | Yes | The number to truncate. |
| places | No | The number of digits to keep after the decimal point. Defaults to 0. Negative values truncate to the left of the decimal point (tens, hundreds, …). |
TRUNC cuts a number off at a chosen number of decimal places without rounding. =TRUNC(3.789, 1) returns 3.7, whereas =ROUND(3.789, 1) returns 3.8. TRUNC simply discards the digits beyond the cut point.
TRUNC(8.99) is 8.TRUNC(8.9876, 2) is 8.98.TRUNC(1789, -2) is 1700.TRUNC(-8.99) is −8.| Formula | 7.8 | −7.8 |
|---|---|---|
TRUNC(x) | 7 | −7 |
INT(x) | 7 | −8 |
ROUND(x) | 8 | −8 |
ROUNDDOWN(x) | 7 | −7 |
FLOOR(x, 1) | 7 | −8 |
The important difference is with negative numbers. INT rounds down to the next lower integer, so −7.8 becomes −8. TRUNC just drops the decimals, so −7.8 becomes −7. ROUNDDOWN also rounds toward zero, so for most purposes TRUNC(x, n) and ROUNDDOWN(x, n) give the same answer; the difference is that TRUNC's second argument is optional.
=TRUNC(42.97)Returns 42.
=TRUNC(B2, 2)If B2 is 19.9987, returns 19.99.
=TRUNC(C2, -2)If C2 is 4,567, returns 4,500.
=TRUNC(A2)Because a timestamp is a date serial plus a time fraction, TRUNC removes the time and leaves the date. Format the result as a date.
=B2 - TRUNC(B2)If B2 is 5.75, returns 0.75 (for negatives, it returns a negative fraction).
=TRUNC(YEARFRAC(B2, TODAY())).=TRUNC(ROUND(A2, 10), 2), if exactness matters.INT, ROUND, ROUNDDOWN, ROUNDUP, FLOOR, CEILING, MOD, and TO_DATE.
A consultant bills clients only for complete hours. With logged hours like 6.8 in column B, =TRUNC(B2) returns 6 billable hours, and =TRUNC(B2)*C2 calculates the invoice amount at the hourly rate in column C.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.