Difference between revisions of "Documentation/How Tos/Calc: MROUND function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
m |
||
Line 35: | Line 35: | ||
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
− | [[Category: Documentation/Reference/Calc]] | + | [[Category: Documentation/Reference/Calc/Mathematical functions]] |
Revision as of 07:41, 3 May 2010
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; mult)
- Returns number rounded to the nearest multiple of mult, that is to mult times an integer.
- An alternative implementation would be mult * ROUND(number/mult).
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).