Difference between revisions of "Documentation/How Tos/Calc: MROUND function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(8 intermediate revisions by 5 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: FLOOR function|FLOOR]] | |
− | + | * [[Documentation/How_Tos/Calc: EVEN function|EVEN]] | |
− | + | * [[Documentation/How_Tos/Calc: ODD function|ODD]] | |
− | + | * [[Documentation/How_Tos/Calc: INT function|INT]] | |
− | + | * [[Documentation/How_Tos/Calc: TRUNC function|TRUNC]] | |
− | + | * [[Documentation/How_Tos/Calc: ROUND function|ROUND]] | |
− | + | * [[Documentation/How_Tos/Calc: ROUNDDOWN function|ROUNDDOWN]] | |
− | + | * [[Documentation/How_Tos/Calc: ROUNDUP function|ROUNDUP]] | |
− | + | * [[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]] | |
+ | |||
+ | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
+ | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
+ | [[Category: Documentation/Reference/Calc/Mathematical functions]] |
Latest revision as of 14:53, 31 January 2024
- Mathematical FunctionsTrigonometric
- COSSINTANCOTACOSACOTASINATANATAN2DEGREESRADIANSPIHyperbolic
- COSHSINHTANHCOTHACOSHACOTHASINHATANHRounding and remainders
- TRUNCROUNDROUNDDOWNROUNDUPCEILINGFLOOREVENODDMROUNDINTQUOTIENTMODLogarithm/Powers
-