Please enable JavaScript to view this site.

A-Shell Reference

xcall HOST2F, alphaflt, hostflt

HOST2F converts an IEEE 4 byte (single precision) or 8 byte (double precision) floating point to the equivalent BASIC 6 byte 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 importing data from outside sources.

Parameters

alphaflt

should be mapped as F,6 and 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 F2HOST for the reverse conversion. Also note that when importing data, if you have any control over the formatting of the import file, it will probably be much easier to use string CSV format. See the INPUT CSV for an easy way to import CSV data.