Skip to content

Commit

Permalink
Add docstrings that RoundFromZero requires Julia 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jessymilare committed Sep 11, 2021
1 parent 9c3d00d commit aba02cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/div.jl
Expand Up @@ -14,6 +14,9 @@ without any intermediate rounding.
See also [`fld`](@ref) and [`cld`](@ref), which are special cases of this function.
!!! compat "Julia 1.8"
`RoundFromZero` requires at least Julia 1.8.
# Examples:
```jldoctest
julia> div(4, 3, RoundDown) # Matches fld(4, 3)
Expand Down Expand Up @@ -68,6 +71,9 @@ without any intermediate rounding.
`[0, -y)` otherwise. The result may not be exact if `x` and `y` have the same sign, and
`abs(x) < abs(y)`. See also [`RoundFromZero`](@ref).
!!! compat "Julia 1.8"
`RoundFromZero` requires at least Julia 1.8.
# Examples:
```jldoctest
julia> x = 9; y = 4;
Expand Down
4 changes: 4 additions & 0 deletions base/rounding.jl
Expand Up @@ -40,6 +40,10 @@ Currently supported rounding modes are:
- [`RoundFromZero`](@ref)
- [`RoundUp`](@ref)
- [`RoundDown`](@ref)
!!! compat "Julia 1.8"
`RoundFromZero` requires at least Julia 1.8. Prior versions support
`RoundFromZero` for `BigFloat`s only.
"""
struct RoundingMode{T} end

Expand Down

0 comments on commit aba02cb

Please sign in to comment.