Community QBasic

Rebooting the QBasic we all know and love!


Project maintained by Cory Smith

MKD$

Convert a double-precision value to an 8-byte string for output to a random-access file by PUT#.

Syntax

MKD$(numeric_expression)

Comments

numeric_expression is a double-precision numeric expression.

Example

OPEN "TEST.DAT" FOR RANDOM AS #1 LEN=8
FIELD #1, 8 AS sal$
salary = 60000
sal$ = MKD$(salary)
PUT #1
CLOSE #1

See Also