Reference Guide > I–L Routines > LCM Function
  

LCM Function
Standard Library function that returns the least common multiple of some integers greater than 1.
Usage
result = LCM(i)
Input Parameters
iAn array of integers greater than 1.
Returned Value
result—An integer, the least common multiple of the integers i.
Keywords
None.
Example
PM, LCM( [3,2,4] )
; PV-WAVE prints:
;   12.000000
See Also
FACTORGCDPRIME

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.