CVS()
This page was last modified 19:06, 2 June 2020 by Mars2000you. Based on work by NYYRIKKI.

Contents

Effect

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

It does not change the actual memory bytes that makes up the original string variable value, so these bytes will be just interpreted as sign, mantissa and exponent.

Notes:

  • This process may easily result into a non valid number that can not be passed forward.
  • The counter function is MKS$().

Syntax

CVS(<StringExpression>)

Parameter

<StringExpression> is 4-character long string expression or variable.

Example

D$="1234": D=CVS(D$): PRINT D
 3.23334E-16

Related to

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

Compatibility

Disk BASIC 1.0 or higher