method
gcd
v1_8_7_72 -
Show latest stable
- Class:
Integer
gcd(other)public
No documentation available.
# File lib/complex.rb, line 424
def gcd(other)
min = self.abs
max = other.abs
while min > 0
tmp = min
min = max % min
max = tmp
end
max
end