xcall F2HOST, alphaflt, hostflt
F2HOST converts a six byte BASIC-format floating point value to the equivalent IEEE four byte (single precision) or eight 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 WRITECD for an easy way to do this.