Convert a double-precision value to an 8-byte string for output to a random-access file by PUT#.
MKD$
(numeric_expression)
numeric_expression is a double-precision numeric expression.
OPEN "TEST.DAT" FOR RANDOM AS #1 LEN=8
FIELD #1, 8 AS sal$
salary = 60000
sal$ = MKD$(salary)
PUT #1
CLOSE #1