ReferenceFunctionsMath Functions
TRUNC
Truncates a number toward zero, optionally at a specified digit position.
Summary
Truncates a number toward zero, optionally at a specified digit position.
Remarks
- If
num_digitsis omitted, truncation is to an integer. - Positive
num_digitskeeps decimal places; negative values zero places to the left. - Passing more than two arguments returns
#VALUE!.
Examples
Truncate to two decimal places
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
12.34
Truncate toward zero at the hundreds place
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
-900
Related functions
FAQ
How does TRUNC differ from INT for negative numbers?
TRUNC removes digits toward zero, while INT floors toward negative infinity.
Runtime metadata
Category
Math
Signature
TRUNC(arg1: Number, arg2…: Number)Arity
min 1, max variadic
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Number · Scalar · coercion NumberLenientText
Caps
PURE
Source