无涯教程-JavaScript - LCM函数

120 阅读1分钟

描述

LCM函数返回整数的最小公倍数。最小公倍数是最小的正整数,它是所有整数参数number1,number2等的倍数。使用LCM添加具有不同分母的分数。

语法

LCM (number1, [number2] ...)

争论

Argument 描述 Required/Optional
Number1, number2...

您想要最小公倍数的1到255个值。

如果value不是整数,则将其截断。

Number1 is Required. Subsequent numbers are Optional.

Notes

  • If any argument is nonnumeric, LCM returns the #VALUE! error value.
  • If any argument is less than zero, LCM returns the #NUM! error value.
  • If LCM (a, b) >=2^53, LCM returns the #NUM! error value.

适用性

Excel 2007,Excel 2010,Excel 2013,Excel 2016

Example

LCM Function

参考链接

www.learnfk.com/javascript/…