Saturday, December 18, 2021

Int function

This article describes the formula syntax and usage of the INT function in Microsoft Excel.

Description

Rounds a number down to the nearest integer.

Syntax

INT(number)

The INT function syntax has the following arguments:

  • Number    Required. The real number you want to round down to an integer.

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Data

19.5

Formula

Description

Result

=INT(8.9)

Rounds 8.9 down

8

=INT(-8.9)

Rounds -8.9 down. Rounding a negative number down rounds it away from 0.

-9

=A2-INT(A2)

Returns the decimal part of a positive real number in cell A2

0.5

No comments:

Post a Comment