MKS$()
This page was last modified 23:29, 2 June 2020 by Mars2000you. Based on work by NYYRIKKI.

Contents

Effect

Returns the original value of a single precision number after conversion into a 4-character string.

It does not change the actual memory bytes that makes up the original variable value, so sign, mantissa and exponent are directly converted into "random" characters.

Notes:

  • This function is useful when using files in random access on disk, because the converted value will take less space in the record buffer.
  • The counter function is CVS().

Syntax

MKS$(<NumberExpression>)

Parameter

<NumberExpression> is an expression, variable or value that can be interpreted as single precision number.

Example

D=19474378: D=MKS$(CSNG(D)): PRINT D$
HGD

Related to

CVD(), CVI(), CVS(), LSET, MKD$(), MKI$(), RSET, VARPTR()

Compatibility

Disk BASIC 1.0 or higher