math.lcm

Full name
math.lcm
Library
math
Syntax

math.lcm(*integers)

Description

The math.lcm (least common multiple) function returns the least common multiple of the integers included as arguments.

Parameters
  • integers: Integer numbers whose least common multiple is to be obtained.
Result

The result returned by the math.lcm function is an integer.

Examples

The least common multiple of the numbers 14 and 32 is 223:

math.lcm(14, 32)

224

Submitted by admin on Sat, 01/23/2021 - 14:03