195. TRANSFER can be used to store one type in another type.#
topic: Data types
Note
This tip is a draft1.
The TRANSFER function interprets the bits of one type as another type. One use is to copy data from a derived type to an array or the reverse. An int64 can be stored in a real64 with full precision until it is TRANSFERred back, as can a character(len=8).
The TRANSFER function interprets the bits of one type as another type. One use is to copy data from a derived type to an array or the reverse. An int64 can be stored in a real64 with full precision until it is TRANSFERred back, as can a character(len=8).pic.twitter.com/dk7WjMWWuD
— FortranTip (@fortrantip) April 19, 2022
- 1
From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.