diff --git a/src/FixedPointDecimals.jl b/src/FixedPointDecimals.jl index 25c432e..1906b88 100644 --- a/src/FixedPointDecimals.jl +++ b/src/FixedPointDecimals.jl @@ -727,7 +727,7 @@ end (::Type{T})(x::FD) where {T<:Union{AbstractFloat,Integer,Rational}} = convert(T, x) # Need to avoid ambiguity: -Bool(x::FD) = convert(Bool, x) +Base.Bool(x::FD) = convert(Bool, x) Base.promote_rule(::Type{FD{T, f}}, ::Type{<:Integer}) where {T, f} = FD{T, f} Base.promote_rule(::Type{<:FD}, ::Type{TF}) where {TF <: AbstractFloat} = TF