Converts a single-precision value stored in IEEE format to an 4-byte string containing the value in Microsoft binary format for output to a random-access file by PUT#.
MKSMBF$
(numeric_expression)
numeric_expression is a single-precision numeric expression.
CVDMBF, CVSMBF, MKDMBF$ and MKSMBF$ are useful for maintaining data files created with earlier versions of BASIC.
TYPE EmpRec
ename AS STRING * 20
salary AS STRING * 4
END TYPE
DIM employee AS EmpRec
OPEN "SALARY.DAT" FOR RANDOM AS #1 LEN=LEN(employee)
employee.ename = "Jones"
employee.salary = MKSMBF$(65000)
PUT #1, 1, employee
CLOSE #1