Skip to content

Commit 2e280ba

Browse files
rssdev10johanmon
authored andcommitted
docs: clarification about the integer division with 'div' (JuliaLang#40253)
1 parent 9fb5649 commit 2e280ba

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

base/div.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"""
66
div(x, y, r::RoundingMode=RoundToZero)
77
8-
The quotient from Euclidean division. Computes x/y, rounded to an integer according
9-
to the rounding mode `r`. In other words, the quantity
8+
The quotient from Euclidean (integer) division. Computes x/y, rounded to
9+
an integer according to the rounding mode `r`. In other words, the quantity
1010
1111
round(x/y,r)
1212

base/operators.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,8 @@ const % = rem
803803
div(x, y)
804804
÷(x, y)
805805
806-
The quotient from Euclidean division. Computes `x/y`, truncated to an integer.
806+
The quotient from Euclidean (integer) division. Generally equivalent
807+
to a mathematical operation x/y without a fractional part.
807808
808809
# Examples
809810
```jldoctest

0 commit comments

Comments
 (0)