MROUND function

From Apache OpenOffice Wiki
Jump to: navigation, search

MROUND

Returns a number rounded to the nearest multiple of another number.

This function is only available if the Analysis AddIn is installed.

Syntax:

MROUND(number; multiple)

Returns number rounded to the nearest multiple of multiple, that is, to multiple times an integer.
An alternative implementation would be multiple * ROUND(number/multiple).

Example:

MROUND(15.5; 3)

returns 15, as 15.5 is closer to 15 ( = 3*5) than to 18 ( = 3*6).

MROUND(1.4; 0.5)

returns 1.5 ( = 0.5*3).



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_MROUND_function&oldid=259867"
Views
Personal tools
Navigation
Tools
In other languages