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

MROUND Function (DAX)

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

Returns a number rounded to the desired multiple.

Syntax

MROUND(<number>, <multiple>)  

Parameters

TermDefinition
numberThe number to round.
multipleThe multiple of significance to which you want to round the number.

Return Value

A decimal number.

Remarks

MROUND rounds up, away from zero, if the remainder of dividing number by the specified multiple is greater than or equal to half the value of multiple.

Example: Decimal Places

Description

The following expression rounds 1.3 to the nearest multiple of .2. The expected result is 1.4.

Code

=MROUND(1.3,0.2)  

Example: Negative Numbers

Description

The following expression rounds -10 to the nearest multiple of -3. The expected result is -9.

Code

=MROUND(-10,-3)  

Example: Error

Description

The following expression returns an error, because the numbers have different signs.

Code

=MROUND(5,-2)  

See Also

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

© 2018 Microsoft