13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MKI$, MKL$, MKS$, MKD$ functi(J118FunctionSyntaxRemarksSee AlsoMKI$, MKL$, MKS$, and MKD$ convert numeric data intostrings (for random file output).s$ = MKI$(integer expression)s$ = MKL$(7ong integer expression)s$ = MKS$(sing7e-precision expression)s$ = MKD$(doub7e-precision expression)The Make functions are part of the process of getting numericvalues into random access files. Since the statements that writeinformation to the buffer of a random file (LSET and RSET) operateonly on strings, numeric data must be translated into stringform before it can be PUT into a random file.MKI${i) returns a two-character string consisting of the two 8-bitvalues that <strong>Turbo</strong> <strong>Basic</strong> uses to internally represent integer variablei. MKL$ returns a 4-byte string equivalent of a long integer. MKS$returns a 4-byte string equivalent of a single-precision value.MKD$ returns an 8-byte string equivalent of a double-precisionvalue. The complementary functions eVI, eVL, evs, and eVD areused when reading random files.Don't confuse these functions with STR$ and VAL, whichrespectively turn a numeric expression into printable form and viceversa:i = 123.45a$ = STR$(i) : b$ = MKS$(i), a$ contains something worth putting, on the screen; b$ doesn'tPRINT as, b$eVDeVIeVLevs264<strong>Turbo</strong> <strong>Basic</strong> Owner's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!