Please re-open this issue: The root cause seems to be in `DoubleFloats`: ``` julia> Double64(1e300)^2 NaN julia> Float64(1e300)^2 Inf ``` _Originally posted by @KlausC in https://github.com/JuliaMath/DoubleFloats.jl/issues/149#issuecomment-1133882519_