diff --git a/yampy/__init__.py b/yampy/__init__.py index 382e3e7..a8667c9 100644 --- a/yampy/__init__.py +++ b/yampy/__init__.py @@ -194,7 +194,7 @@ class MathFunc(MathObj): "log2": (math.log2, 1, 1), "log10": (math.log10, 1, 1), "gcd": (math.gcd, 2, 1000), - "lcm": (math.lcm, 2, 1000), + "lcm": (lambda a, b: (a * b) // math.gcd(a, b), 2, 1000), "xor": (operator.xor, 2, 2), "int": (int, 1, 1), "float": (float, 1, 1),