INT

Rounds a number down to the nearest integer.

Syntax

INT(number)

Number   is the real number you want to round down to an integer.

Examples

INT(8.9) equals 8

INT(-8.9) equals -9

The following formula returns the decimal part of a positive real number in cell A1:


A1-INT(A1)