Detailed Descriptions

F2HOST

xcall HOST2F, alphaflt, hostflt

F2HOST.SBR converts a six-byte AlphaBASIC-format floating point value to the equivalent IEEE 4 byte (single precision) or 8 byte (double precision) floating point format. Although this is done internally by A-Shell all the time, since it uses the IEEE format for internal calculations, the subroutine may be handy when exporting data to outside sources.   

Parameters

alphaflt  (F,6)

will return the converted value.

hostflt

should be mapped as X,4 or X,8 depending on the size of the IEEE floating point value to be converted.

Comments

See HOST2F for the reverse conversion. Note that when exporting data, it is usually more practical to output in string CSV format. See the WRITECD and WRITETD statements in the A-Shell Command Reference for an easy way to do this.