CVI()
This page was last modified 19:00, 2 June 2020 by Mars2000you. Based on work by Josb and NYYRIKKI.

Contents

Effect

Returns the original value of a 2-character string after conversion into an integer value.

It does not change the actual memory bytes that makes up the original string variable value.

Notes:

  • Following statement is true: CVI(D$)=ASC(MID$(D$,2))*256+ASC(D$)
  • The counter function is MKI$().

Syntax

CVI(<StringExpression>)

Parameter

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

Example

D$="12": D=CVI(D$): PRINT D
 12849

Related to

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

Compatibility

Disk BASIC 1.0 or higher