diff --git a/base/div.jl b/base/div.jl index 2df79fbdc6124..d78220c530608 100644 --- a/base/div.jl +++ b/base/div.jl @@ -5,8 +5,8 @@ """ div(x, y, r::RoundingMode=RoundToZero) -The quotient from Euclidean division. Computes x/y, rounded to an integer according -to the rounding mode `r`. In other words, the quantity +The quotient from Euclidean (integer) division. Computes x/y, rounded to +an integer according to the rounding mode `r`. In other words, the quantity round(x/y,r) diff --git a/base/operators.jl b/base/operators.jl index 8b91657fda201..c35f90fb479a1 100644 --- a/base/operators.jl +++ b/base/operators.jl @@ -803,7 +803,8 @@ const % = rem div(x, y) รท(x, y) -The quotient from Euclidean division. Computes `x/y`, truncated to an integer. +The quotient from Euclidean (integer) division. Generally equivalent +to a mathematical operation x/y without a fractional part. # Examples ```jldoctest