PHP - Manual: gmp_lcm
2024-11-23
(PHP 7 >= 7.3.0, PHP 8)
gmp_lcm — Calculate LCM
$num1
$num2
This function computes the least common multiple (lcm) of num1 and num2.
num1
num2
GMP 对象或 int ,或数字string。
GMP 对象。
官方地址:https://www.php.net/manual/en/function.gmp-lcm.php