diff --git a/src/FixedPointDecimals.jl b/src/FixedPointDecimals.jl index 5856d23..49a092c 100644 --- a/src/FixedPointDecimals.jl +++ b/src/FixedPointDecimals.jl @@ -354,6 +354,9 @@ Base.eps(x::FD) = eps(typeof(x)) Base.floatmin(::Type{T}) where {T <: FD} = eps(T) Base.floatmax(::Type{T}) where {T <: FD} = typemax(T) +# the default implementation of signbit is slow for BigInts and Int128s +Base.signbit(x::FD) = signbit(x.i) + # printing function Base.print(io::IO, x::FD{T, 0}) where T print(io, x.i)