@@ -27,23 +27,13 @@ Double32(x::Int128) = Double32(BigInt(x))
2727Double16 (x:: Int128 ) = Double16 (BigInt (x))
2828
2929# constants for BigFloat precision are > 2*significandbits(DoubleT)
30- if VERSION >= v " 1.1.0"
31- Double64 (x:: Irrational{S} ) where {S} = Double64 (BigFloat (x; precision= 250 ))
32- Double32 (x:: Irrational{S} ) where {S} = Double32 (BigFloat (x; precision= 122 ))
33- Double16 (x:: Irrational{S} ) where {S} = Double16 (BigFloat (x; precision= 60 ))
30+ Double64 (x:: Irrational{S} ) where {S} = Double64 (BigFloat (x; precision= 250 ))
31+ Double32 (x:: Irrational{S} ) where {S} = Double32 (BigFloat (x; precision= 122 ))
32+ Double16 (x:: Irrational{S} ) where {S} = Double16 (BigFloat (x; precision= 60 ))
3433
35- Double64 (x:: Rational{S} ) where {S} = Double64 (BigFloat (x; precision= 250 ))
36- Double32 (x:: Rational{S} ) where {S} = Double32 (BigFloat (x; precision= 122 ))
37- Double16 (x:: Rational{S} ) where {S} = Double16 (BigFloat (x; precision= 60 ))
38- else
39- Double64 (x:: Irrational{S} ) where {S} = Double64 (BigFloat (x, 250 ))
40- Double32 (x:: Irrational{S} ) where {S} = Double32 (BigFloat (x, 122 ))
41- Double16 (x:: Irrational{S} ) where {S} = Double16 (BigFloat (x, 60 ))
42-
43- Double64 (x:: Rational{S} ) where {S} = Double64 (BigFloat (x, 250 ))
44- Double32 (x:: Rational{S} ) where {S} = Double32 (BigFloat (x, 122 ))
45- Double16 (x:: Rational{S} ) where {S} = Double16 (BigFloat (x, 60 ))
46- end
34+ Double64 (x:: Rational{S} ) where {S} = Double64 (BigFloat (x; precision= 250 ))
35+ Double32 (x:: Rational{S} ) where {S} = Double32 (BigFloat (x; precision= 122 ))
36+ Double16 (x:: Rational{S} ) where {S} = Double16 (BigFloat (x; precision= 60 ))
4737
4838Complex {Double64} (x:: T ) where {T<: AbstractIrrational } = Complex (Double64 (x))
4939Complex {Double32} (x:: T ) where {T<: AbstractIrrational } = Complex (Double32 (x))
0 commit comments