From 719c4d01b98c9c6a0d531047a7d530eae90e2af9 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 30 Oct 2020 15:30:40 +0100 Subject: [PATCH] doc: correct the definition of lcm (#37923) The old definition would imply that lcm always returns 0. This brings it more in line with that of gcd. --- base/intfuncs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/intfuncs.jl b/base/intfuncs.jl index f6fac30a53b45..35140a81367e6 100644 --- a/base/intfuncs.jl +++ b/base/intfuncs.jl @@ -74,7 +74,7 @@ end """ lcm(x, y...) -Least common (non-negative) multiple. +Least common (positive) multiple (or zero if any argument is zero). The arguments may be integer and rational numbers. !!! compat "Julia 1.4"