mksmbf$, mkdmbf$ - convert floating point value to old format


v$ = mksmbf$(SngExp)
v$ = mkdmbf$(DblExp)


Mksmbf$ and mkdmbf$ convert a floating point value into a string representing a value in the old Microsoft Binary Format.  Mksmbf$ converts a single-precision value into a 4-byte string.  Mkdmbf$ converts a double-precision value into an 8-byte string.  To be useful, the resulting strings must be stored directly into a file for transfer to a system or to software which can interpret the strings as floating point numbers in old Microsoft Binary Format. 

To convert from the old format to the modern format, use cvsmbf and cvdmbf


cvsmbf, cvdmbf


These functions are not recommended, but are provided for backward compatibility. 

It is assumed that the modern format is the ANSI/IEEE Standard 754-1985.  The ordering of bytes is, nevertheless, implementation dependent. 

If you donít understand these functions, you probably donít need them. 

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber