ichigyou
    Preparing search index...

    Function gcd

    • Calculates the greatest common divisor (GCD) of two numbers.

      Parameters

      • num1: number

        The first input number.

      • num2: number

        The second input number.

      Returns number

      The GCD of num1 and num2.

      This function uses the Euclidean algorithm.