Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarification about the integer division with 'div' #40253

Merged
merged 1 commit into from
Apr 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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