Table of contents
TOC
Collapse the table of content
Expand the table of content

INT Function (DAX)

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

Rounds a number down to the nearest integer.

Syntax

INT(<number>)  

Parameters

TermDefinition
numberThe number you want to round down to an integer

Return Value

A whole number.

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

The following expression rounds the value to 1. If you use the ROUND function, the result would be 2.

=INT(1.5)  

See Also

Math and Trig Functions (DAX)
ROUND Function (DAX)
ROUNDUP Function (DAX)
ROUNDDOWN Function (DAX)
MROUND Function (DAX)

© 2018 Microsoft