Skip to content

Commit

Permalink
doc: correct the definition of lcm (JuliaLang#37923)
Browse files Browse the repository at this point in the history
The old definition would imply that lcm always returns 0. This
brings it more in line with that of gcd.
  • Loading branch information
fingolfin authored Oct 30, 2020
1 parent 0097bdd commit 719c4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/intfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 719c4d0

Please sign in to comment.