Set default tolerance for isapprox()

Ah, I misunderstood. You can capture a specific kwarg like this for example:

function Base.isapprox(x::MyType, y::MyType; atol=nothing, kwargs...)
    if atol === nothing
        atol = 1e-6
    end
    return isapprox(x.v, y.v; atol=atol, kwargs...)
end
2 Likes