TRUNC function in Google Sheets
Truncates a number to a certain number of significant digits by omitting less significant digits.
=TRUNC(value, [places])TRUNC syntax and parameters
Two arguments, one required.
- valuenumberRequired
The value to be truncated.
- placesnumberOptional
[ OPTIONAL - 0 by default ] - The number of significant digits to the right of the decimal point to retain. If places is greater than the number of significant digits in value, value is returned without modification. places may be negative, in which case the specified number of digits to the left of the decimal place are changed to zero. All digits to the right of the decimal place are discarded. If all digits of value are changed to zero, TRUNC simply returns 0.
TRUNC examples
Formulas you'll actually reuse.
The whole part toward zero — unlike INT, −2.5 becomes −2:
=TRUNC(B2)Result
-2Cut to two decimals without rounding:
=TRUNC(B2, 2)Result
23.78
TRUNC in Excel
Same name — your formula ports as-is.
Try TRUNC in the playground
Edit the example — nothing to install.
Preloaded with the TRUNC formula from Example 1 — change anything and watch it respond.
Related functions
More ways Google Sheets gets this done.
- ABSReturns the absolute value of a number.MathExcel
- ACOSReturns the inverse cosine of a value, in radians.MathExcel
- ACOSHReturns the inverse hyperbolic cosine of a number.MathExcel
- ACOTReturns the inverse cotangent of a value, in radians. .MathExcel
- ACOTHReturns the inverse hyperbolic cotangent of a value, in radians. Must not be between -1 and 1, inclusive..MathExcel
- ASINReturns the inverse sine of a value, in radians.MathExcel