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.
Float16(::BigFloat)
Float64
1 parent 514426d commit 323b5b4Copy full SHA for 323b5b4
base/mpfr.jl
@@ -339,7 +339,7 @@ Float32(x::BigFloat, r::MPFRRoundingMode=ROUNDING_MODE[]) =
339
Float32(x::BigFloat, r::RoundingMode) = Float32(x, convert(MPFRRoundingMode, r))
340
341
# TODO: avoid double rounding
342
-Float16(x::BigFloat) = Float16(Float32(x))
+Float16(x::BigFloat) = Float16(Float64(x))
343
344
promote_rule(::Type{BigFloat}, ::Type{<:Real}) = BigFloat
345
promote_rule(::Type{BigInt}, ::Type{<:AbstractFloat}) = BigFloat
0 commit comments