Skip to content

Commit 6a94771

Browse files
stevengjJeffBezanson
authored andcommitted
clarify that eps(T) is dimensionless (#26035)
1 parent 160a467 commit 6a94771

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/float.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,8 @@ realmax() = realmax(Float64)
761761
762762
Return the *machine epsilon* of the floating point type `T` (`T = Float64` by
763763
default). This is defined as the gap between 1 and the next largest value representable by
764-
`T`, and is equivalent to `eps(one(T))`.
764+
`typeof(one(T))`, and is equivalent to `eps(one(T))`. (Since `eps(T)` is a
765+
bound on the *relative error* of `T`, it is a "dimensionless" quantity like [`one`](@ref).)
765766
766767
```jldoctest
767768
julia> eps()

0 commit comments

Comments
 (0)