gmp_lcm

(PHP 7 >= 7.3.0, PHP 8)

gmp_lcmCalculate LCM

說明

gmp_lcm(GMP|int|string $num1, GMP|int|string $num2): GMP

This function computes the least common multiple (lcm) of num1 and num2.

參數(shù)

num1

GMP 對象或 int ,或數(shù)字string

num2

GMP 對象或 int ,或數(shù)字string。

返回值

GMP 對象。

參見