Module:Utils: Difference between revisions
+gcd function |
m Fix |
||
Line 62: | Line 62: | ||
end | end | ||
function _gcd(a, b) | function p._gcd(a, b) | ||
if b ~= 0 then | if b ~= 0 then | ||
return _gcd(b, a % b) | return p._gcd(b, a % b) | ||
else | else | ||
return math.abs (a) | return math.abs (a) |