Storing high precision constants to use with fixed precision libraries (DoubleFloats.jl, Quadmath.jl, DecFP.jl, etc.)

In this case you could write it as T(significand) * exp2(T(exponent)), using an Int128 significand, at the cost of an exp2 call.

3 Likes