Template:Gcd
Revision as of 18:08, 3 August 2007 by imported>Ezhiki (back to seven for now)
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 seven iterations of the Euclidean algorithm).
Examples
- {{gcd|16|6}} → 2
- {{gcd|544|119}} → 17
- {{gcd|1787|853}} → Expression error: Unclosed bracket. (algorithm iteration limit reached)