Talk:Greatest common divisor

Revision as of 19:02, 8 May 2012 by rosettacode>Gerard Schildberger (added comments regarding errors and showing results for negative arguments. -- ~~~~)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

errors in programs

A few programs would attempt to divide by zero if the 2nd argument is 0 (zero).
In that special case, the absolute value of the first argument should be returned.

A number of examples don't show the results if either argument is negative.

Return to "Greatest common divisor" page.