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
aandb.Throws
An error if either
aorbis not a positive integer.