Skip to content

Commit

Permalink
Update base/div.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski authored and Viral B. Shah committed Dec 13, 2020
1 parent 99cb5da commit 2a97fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/div.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ See also: [`div`](@ref)
julia> fld(7.3,5.5)
1.0
```
Because of floating-point rounding `fld(x,y)` can lead to an *alleged* violation of the `fld(x,y) == x/y` condition:
Because `fld(x, y)` implements strictly correct floored rounding based on the true of floating-point numbers, unintuitive situations can arise. For example:
```jldoctest
julia> fld(6.0,0.1)
59.0
Expand Down

0 comments on commit 2a97fd9

Please sign in to comment.