For example, TRUNC(4.9) will return 4, and TRUNC(-3.5) will return -3.

The TRUNC function does no rounding, it simply truncates as specified.

The TRUNC function takes twoarguments:numberandnum_digits.Numberis the numeric value to truncate.

Excel formula: Remove time from timestamp

Thenum_digitsargument is optional and specifies the place at whichnumbershould be truncated.Num_digitsdefaults to zero (0).

However, TRUNC simply truncates a number, while INT actually rounds a number down to an integer.

With negative numbers, the results can be different.

Excel formula: Data validation whole percentage only

INT(-3.1) returns -4, because INT rounds down to the lower integer.

TRUNC(-3.1) returns -3.

If you simply want the integer part of a number, you should use TRUNC.

Excel formula: Extract date from a date and time

Note that negative numbers becomemore negative.

For example, while INT(10.8) returns 10, INT(-10.8) returns -11.

For example, TRUNC(4.9) will return 4, and TRUNC(-3.5) will return -3.

Excel formula: Number is whole number

The TRUNC function does no rounding, it simply truncates as specified.

ROUND Function

The Excel ROUND function returns a number rounded to a given number of digits.

The ROUND function can round to the right or left of the decimal point.

Excel formula: Get decimal part of a number

ROUNDDOWN Function

The Excel ROUNDDOWN function returns a number rounded down to a given number of places.

MROUND will round a number up or down, depending on the nearest multiple.

CEILING Function

The Excel CEILING function rounds a given numberupto the nearest specified multiple.

Excel formula: Get integer part of a number

CEILING works like theMROUND function, but CEILINGalways rounds up.

FLOOR Function

The Excel FLOOR function rounds a given number down to the nearest specified multiple.

FLOOR works like the MROUND function, but FLOORalways rounds down.

Article image

ODD Function

The Excel ODD function returns the next odd integer after rounding a given number up.

EVEN Function

The Excel EVEN function rounds numbers up to the next even integer.

Excel INT function

Excel TRUNC function

Excel ROUND function

Excel ROUNDDOWN function

Excel ROUNDUP function

Excel MROUND function

Excel CEILING function

Excel FLOOR function

Excel ODD function

Excel EVEN function