Category talk:Wren-big: Difference between revisions
Content added Content deleted
(→Source code: Removed type aliases which are no longer needed.) |
(→Source code: Ensure consistency between types.) |
||
Line 675: | Line 675: | ||
if (!(a is BigInt)) a = BigInt.new(a) |
if (!(a is BigInt)) a = BigInt.new(a) |
||
if (!(b is BigInt)) b = BigInt.new(b) |
if (!(b is BigInt)) b = BigInt.new(b) |
||
if (a.isZero && b.isZero) return BigInt.zero |
|||
return a / gcd(a, b) * b |
return a / gcd(a, b) * b |
||
} |
} |