AdaCAD Library Documentation - v1.1.4
    Preparing search index...

    Function gcd

    • in connection with lcm, the gcd (greatest common divisor) determines the largest number that can divide into both inputs I used Eulers algorithm with Euclidan Divison for determining this. assumes non-zero inputs

      Parameters

      • a: number
      • b: number

      Returns number