Difference between revisions of "Documentation/How Tos/Calc: LCM function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
m
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE:LCM function}}
 +
{{Documentation/CalcFunc MathematicalTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_GESTEP_function
 +
|NextPage=Documentation/How_Tos/Calc:_LCM_ADD_function
 +
}}__NOTOC__
 +
* [[Documentation/How_Tos/Calc:_GESTEP_function|<div style="font-size: 120%;">Gestep]]
 +
* [[Documentation/How_Tos/Calc:_LCM_function|<div style="font-size: 120%; border-style: double; border-color:#778899;">Lcm]]
 +
* [[Documentation/How_Tos/Calc:_LCM_ADD_function|<div style="font-size: 120%;">Lcm Add]]
 +
* [[Documentation/How_Tos/Calc:_MULTINOMIAL_function|<div style="font-size: 120%;">Multinomial]]
 +
* [[Documentation/How_Tos/Calc:_PRODUCT_function|<div style="font-size: 120%;">Product]]
 +
* [[Documentation/How_Tos/Calc:_RAND_function|<div style="font-size: 120%;">Rand]]
 +
* [[Documentation/How_Tos/Calc:_RANDBETWEEN_function|<div style="font-size: 120%;">Randbetween]]
 +
* [[Documentation/How_Tos/Calc:_SERIESSUM_function|<div style="font-size: 120%;">Seriessum]]
 +
* [[Documentation/How_Tos/Calc:_SIGN_function|<div style="font-size: 120%;">Sign]]
 +
* [[Documentation/How_Tos/Calc:_SQRT_function|<div style="font-size: 120%;">Sqrt]]
 +
* [[Documentation/How_Tos/Calc:_SQRTPI_function|<div style="font-size: 120%;">Sqrtpi]]
 +
* [[Documentation/How_Tos/Calc:_SUBTOTAL_function|<div style="font-size: 120%;">Subtotal]]
 +
* [[Documentation/How_Tos/Calc:_SUM_function|<div style="font-size: 120%;">Sum]]
 +
* [[Documentation/How_Tos/Calc:_SUMIF_function|<div style="font-size: 120%;">Sumif]]
 +
* [[Documentation/How_Tos/Calc:_SUMSQ_function|<div style="font-size: 120%;">Sumsq]]
 +
}}__TOC__
  
 
== LCM ==
 
== LCM ==
Line 17: Line 38:
 
: where B1 and C1 contain <tt>'''6'''</tt> and  <tt>'''3'''</tt> respectively, returns <tt>'''6'''</tt>.
 
: where B1 and C1 contain <tt>'''6'''</tt> and  <tt>'''3'''</tt> respectively, returns <tt>'''6'''</tt>.
  
=== Issues: ===
 
To comply with the ODFF standard, from OOo3.0 negative arguments to <tt>'''LCM'''</tt> will yield an error.
 
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: GCD function|GCD]]
 
* [[Documentation/How_Tos/Calc: GCD function|GCD]]
 
* [[Documentation/How_Tos/Calc: GCD_ADD function|GCD_ADD]]
 
* [[Documentation/How_Tos/Calc: GCD_ADD function|GCD_ADD]]
Line 29: Line 48:
 
* [[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/Mathematical functions]]

Latest revision as of 15:32, 31 January 2024

}}

LCM

Returns the least common multiple of one or more integers.

Syntax:

LCM(integer1; integer2; ... integer30)

integer1 to integer30 are up to 30 integers or ranges of integers whose least common multiple is to be calculated.
The least common multiple (or lowest common multiple) is the smallest positive integer that is a multiple of all the given numbers.

Example:

LCM(4; 6)

returns 12, which is the smallest positive integer that is a multiple of 4 (12=4*3) and 6 (12=6*2).

LCM(B1:C1)

where B1 and C1 contain 6 and 3 respectively, returns 6.




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