Greatest Common Denominator Function

Summary

Returns the greatest common denominator of the two numbers a and b.

Syntax

gcd(a,b)

Usage

Examples

 gcd(6, 4) = 2 
 gcd(8, 12) = 2 
 gcd(12, 27) = 3 
 gcd(10, 15) = 5 
 gcd(12, 48) = 6 
 gcd(15, 25) = 5 
 gcd(100, 31) = 1