objecthub / swift-numberkit

Advanced numeric data types for Swift 5, including BigInt, Rational, and Complex numbers.
Apache License 2.0
54 stars 15 forks source link

Fix a handful of corner cases for GCD and LCM. For example, computing… #18

Closed detreville closed 1 year ago

detreville commented 1 year ago

… gcd(1, 0) no longer loops forever.

objecthub commented 1 year ago

Your changes look great. Thanks for fixing gcd/lcm.