QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The _CV function is used to convert _MK$, ASCII, STRING values to numerical values.

Syntax

result = _CV(numericalType, MKstringValue$)

Parameter(s)

Description

Example(s)

Using the _MK$ and _CV functions:


DIM i64 AS _INTEGER64
DIM i64str AS STRING

i64 = 2 ^ 61
i64str = _MK$(_INTEGER64, i64)

PRINT "I64:"; i64
PRINT "_MK$: "; i64str

i64 = _CV(_INTEGER64, i64str)
PRINT "_CV:"; i64 


I64: 2305843009213693952
_MK$:
_CV: 2305843009213693952

The _MK$ string result may not print anything to the screen, as in the example above, unless _CONTROLCHR is set to OFF.

See Also