Skip to content

Commit 8295987

Browse files
remove second def
1 parent 9b2a564 commit 8295987

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/type/string.jl

-9
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@ function string(x::DoubleFloat{T}) where {T<:IEEEFloat}
1313
str[1:zat] * str[eat:end]
1414
end
1515

16-
function string(x::DoubleFloat{T}) where {T<:IEEEFloat}
17-
(!isfinite(HI(x)) || LO(x) === 0.0) && return string(HI(x))
18-
str = string(Float128(x))
19-
if endswith("e+00", str)
20-
str = str[1:end-4]
21-
end
22-
str
23-
end
24-
2516
function string(x::Complex{DoubleFloat{T}}) where {T<:IEEEFloat}
2617
xreal, ximag = reim(x)
2718
sepstr = signbit(ximag) ? " - " : " + "

0 commit comments

Comments
 (0)