Reinterpret the bit pattern of an int64 as a real(dp).
See bits_to_real_sp for why this is confined to the swapped path.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(in) | :: | bits |
pure function bits_to_real_dp(bits) result(x) !! Reinterpret the bit pattern of an `int64` as a `real(dp)`. !! See `bits_to_real_sp` for why this is confined to the swapped path. integer(int64), intent(in) :: bits real(dp) :: x x = transfer(bits, 0.0_dp) end function bits_to_real_dp