1. Home
  2. Functions
  3. Math
  4. TRUNC

TRUNC function

Cuts a number down to a given number of digits by removing the rest.

Syntax

=TRUNC(number, [num_digits])

Arguments

ArgumentRequiredDescription
numberRequiredThe number to truncate
num_digitsOptionalDigits to keep after the decimal point (0 when left out)

How to use TRUNC

TRUNC takes 1 required argument and 1 optional argument. Type =TRUNC( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=TRUNC(8.9)Result 8
=TRUNC(-8.9)Result -8
=TRUNC(0.45, 1)Result 0.4

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.