Difference between revisions of "Documentation/How Tos/Calc: MROUND function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE:MROUND function}} |
+ | {{Documentation/CalcFunc MathematicalTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_ODD_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_INT_function | ||
+ | }}__NOTOC__ | ||
== MROUND == | == MROUND == | ||
Line 7: | Line 12: | ||
=== Syntax: === | === Syntax: === | ||
− | <tt>'''MROUND(number; | + | <tt>'''MROUND(number; multiple)'''</tt> |
− | : Returns <tt>'''number'''</tt> rounded to the nearest multiple of <tt>''' | + | : Returns <tt>'''number'''</tt> rounded to the nearest multiple of <tt>'''multiple'''</tt>, that is, to <tt>'''multiple'''</tt> times an integer. |
− | : An alternative implementation would be <tt>''' | + | : An alternative implementation would be <tt>'''multiple * ROUND(number/multiple)'''</tt>. |
=== Example: === | === Example: === | ||
Line 19: | Line 24: | ||
: <tt>'''returns 1.5'''</tt> ( = 0.5*3). | : <tt>'''returns 1.5'''</tt> ( = 0.5*3). | ||
− | {{ | + | {{SeeAlso|EN| |
* [[Documentation/How_Tos/Calc: CEILING function|CEILING]] | * [[Documentation/How_Tos/Calc: CEILING function|CEILING]] | ||
* [[Documentation/How_Tos/Calc: FLOOR function|FLOOR]] | * [[Documentation/How_Tos/Calc: FLOOR function|FLOOR]] |
Latest revision as of 14:53, 31 January 2024
- Mathematical FunctionsTrigonometric
- COSSINTANCOTACOSACOTASINATANATAN2DEGREESRADIANSPIHyperbolic
- COSHSINHTANHCOTHACOSHACOTHASINHATANHRounding and remainders
- TRUNCROUNDROUNDDOWNROUNDUPCEILINGFLOOREVENODDMROUNDINTQUOTIENTMODLogarithm/Powers
-