Talk:Greatest common divisor: Difference between revisions

→‎errors in programs: add gcd(0,0) case
(→‎PL/I: new section)
(→‎errors in programs: add gcd(0,0) case)
Line 3:
A few programs would attempt to divide by zero if the 2nd argument is 0 (zero).
<br> In that special case, the absolute value of the first argument should be returned.
::unless it is 0 --[[User:Walterpachl|Walterpachl]] 12:40, 17 August 2012 (UTC)
 
<br><br>A number of examples don't show the results if either argument is negative.
 
2,295

edits