Skip to content

Commit

Permalink
docs: clarification about the integer division with 'div' (JuliaLang#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rssdev10 committed Apr 1, 2021
1 parent b2a586e commit e8eb174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base/div.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8eb174

Please sign in to comment.