diff --git a/src/math.jl b/src/math.jl index 55681b6..6a2185c 100644 --- a/src/math.jl +++ b/src/math.jl @@ -144,7 +144,7 @@ Base.one(::Type{<:AbstractQuantity{T}}) where T = one(T) #unitless Base.oneunit(::Type{<:AbstractQuantity{T,D}}) where {T,D} = quantity(one(T), zero(D)) #unitless with type #Comparison functions -for f in (:<, :>, :<=, :>=) +for f in (:<, :<=) @eval function Base.$f(q1::AbstractQuantity, q2::AbstractQuantity) (b1, b2) = (ubase(q1), ubase(q2)) unit(b1) == unit(b2) || throw(DimensionError(unit(b1), unit(b2)))