(gcd integer1 integer2)
Calculate the greatest common denominator.
This function returns the greatest common denominator between integer1 and integer2. Both numbers must be integers. Use the fix function to create integers out of real numbers.
Examples
Code | Returns |
---|---|
(gcd 39 45) | 3 |
(gcd 40 45) | 5 |