Skip to content

Commit b045494

Browse files
committed
Cleanup floattype
1 parent eaf3208 commit b045494

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FixedPointDecimals.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ end
102102

103103
const FD = FixedDecimal
104104

105-
floattype(::Type{FD{T, f}}) where {T<:Union{Int8, UInt8, Int16, UInt16}, f} = Float32
106-
floattype(::Type{FD{T, f}}) where {T<:Integer, f} = Float64
107-
floattype(::Type{FD{T, f}}) where {T<:BigInt, f} = BigFloat
105+
floattype(::Type{<:FD{T}}) where {T<:Union{Int8, UInt8, Int16, UInt16}} = Float32
106+
floattype(::Type{<:FD{T}}) where {T<:Integer} = Float64
107+
floattype(::Type{<:FD{BigInt}}) = BigFloat
108108

109109
# basic operators
110110
-(x::FD{T, f}) where {T, f} = reinterpret(FD{T, f}, -x.i)

0 commit comments

Comments
 (0)