We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Base._precision_with_base_2
Base._precision
1 parent ac1ef07 commit 2b0e173Copy full SHA for 2b0e173
src/Double.jl
@@ -213,8 +213,8 @@ DoubleFloat(x::Int64) = Double64(x, zero(Int64))
213
DoubleFloat(x::Int32) = Double32(x, zero(Int32))
214
DoubleFloat(x::Int16) = Double16(x, zero(Int16))
215
216
-# overload Base._precision to support the base keyword in Julia 1.8
217
-let precision = isdefined(Base, :_precision) ? :_precision : :precision
+# overload Base._precision_with_base_2 or Base._precision to support the base keyword in Julia 1.8
+let precision = isdefined(Base, :_precision_with_base_2) ? :_precision_with_base_2 : isdefined(Base, :_precision) ? :_precision : :precision
218
@eval Base.$precision(::Type{DoubleFloat{T}}) where {T<:IEEEFloat} = 2*Base.$precision(T)
219
end
220
0 commit comments