MKD$()
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 double precision number after conversion into a 8-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 CVD().

Syntax

MKD$(<NumberExpression>)

Parameter

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

Example

D=19474378: D=MKD$(CDBL(D)): PRINT D$
HGCx

Related to

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

Compatibility

Disk BASIC 1.0 or higher