Template:Gcd/doc



This template calculates the greatest common divisor (gcd) of two parameters. It returns the value of gcd. Zero is returned when calculation is too complex (this implementation only allows for ten iterations of the Euclidean algorithm).

Examples

 * &rarr;
 * &rarr;
 * &rarr; (algorithm iteration limit reached)

ja:Template:Gcd