Calculates the greatest common divisor (GCD) of two numbers.
The greatest common divisor of a and b.
a
b
An error if either a or b is not a positive integer.
The first number.
The second number.
Generated using TypeDoc
Calculates the greatest common divisor (GCD) of two numbers.
Returns
The greatest common divisor of
a
andb
.Throws
An error if either
a
orb
is not a positive integer.