Function gcd

  • Returns the greatest common divisor of two numbers

    Example

    gcd(24, 12);
    => 12

    Parameters

    • a: number

      First number

    • b: number

      Second number

    Returns number

Generated using TypeDoc