Skip to content

Commit 5e45856

Browse files
LilithHafnerKristofferC
authored andcommitted
Clarify mathematical definition of gcd (#57204)
See also: Triage request for this: #57067 (comment) Similar PR for `lcm`: #56992 (cherry picked from commit 41a4dfa)
1 parent 1152e9b commit 5e45856

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/intfuncs.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
Greatest common (positive) divisor (or zero if all arguments are zero).
99
The arguments may be integer and rational numbers.
1010
11+
``a`` is a divisor of ``b`` if there exists an integer ``m`` such
12+
that ``ma=b``.
13+
1114
!!! compat "Julia 1.4"
1215
Rational arguments require Julia 1.4 or later.
1316

0 commit comments

Comments
 (0)