Skip to content

Commit

Permalink
clarify that eps(T) is dimensionless (JuliaLang#26035)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored and JeffBezanson committed Feb 14, 2018
1 parent 160a467 commit 6a94771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/float.jl
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,8 @@ realmax() = realmax(Float64)
Return the *machine epsilon* of the floating point type `T` (`T = Float64` by
default). This is defined as the gap between 1 and the next largest value representable by
`T`, and is equivalent to `eps(one(T))`.
`typeof(one(T))`, and is equivalent to `eps(one(T))`. (Since `eps(T)` is a
bound on the *relative error* of `T`, it is a "dimensionless" quantity like [`one`](@ref).)
```jldoctest
julia> eps()
Expand Down

0 comments on commit 6a94771

Please sign in to comment.