Home : INT
Q11538 - INFO: INT

INT (Primitive Spread Function) rounds a specified number down to the nearest integer.

SYNTAX:

INT(value)

REMARKS:

You can use the INT function to return the decimal portion of the value in a cell by subtracting the value of INT for the cell from the value in the cell, as illustrated in the first example.

The TRUNC and INT functions are similar in that both return integers. Use the TRUNC function to remove the decimal portion of the number; the TRUNC function does not round up or down. Use the INT function to round numbers down to the nearest integer-based decimal portion of the number.

The INT and TRUNC functions differ also when using negative numbers: TRUNC(-4.2) returns –4, but INT(-4.2) returns –5 because –5 is the lower number. 

EXAMPLES:

INT(A3)
INT(2.85)=2
INT(-2.85)=-3

Related Articles
Q11515 - INFO: CEILING
Q11528 - INFO: EVEN
Q11535 - INFO: FLOOR
Q11569 - INFO: ODD
Q11586 - INFO: ROUND
Q11587 - INFO: ROUNDDOWN
Q11588 - INFO: ROUNDUP
Q11611 - INFO: TRUNC

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 8/26/2008 11:56 AM.
Last Modified on 8/26/2008 11:56 AM.
Last Modified by No Author Name Available!.
Article has been viewed 3385 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article