TRUNC function

Truncates a number to an integer by removing the fractional part of the number.

Syntax

TRUNC(number,num_digits)

Argument

Description

number

The number you want to truncate.

num_digits

A number specifying the precision of the truncation. The default value for num_digits is 0 (zero).

General remarks

TRUNC and INT are similar in that both return integers. TRUNC removes the fractional part of the number. INT rounds numbers down to the nearest integer based on the value of the fractional part of the number. INT and TRUNC are different only when using negative numbers: =TRUNC(-4.3) returns -4, but =INT(-4.3) returns -5 because -5 is the lower number.

Example

To make the following example easier to understand, you can copy the data to a blank sheet and then enter the function underneath the data. Do not select the row or column headings (1, 2, 3... A, B, C...) when you copy the sample data to a blank sheet.

1
2
3
4
AB
FormulaDescription (Result)
=TRUNC(8.9)Integer part of 8.9 (8)
=TRUNC(-8.9) Integer part of -8.9 (-8)
=TRUNC(PI( )) Integer part of pi (3)
Rate this content:
Not helpfulSomewhat helpfulHelpfulVery helpfulSolved my problem 
 
Share your feedback about this topic