npm.nicfv.com
    Preparing search index...

    Function gcd

    • Get the greatest common denominator (GCD) of two numbers.

      Parameters

      • a: number

        Any positive integer

      • b: number

        Any positive integer

      Returns number

      The GCD of two numbers

      const y = SMath.gcd(42, 30); // 6