QBasic 1.1: VAL Function

Syntax

STR$(numeric-expression)
VAL(stringexpression$)

Description / Parameter(s)

numeric-expression Any numeric expression.
stringexpression$ A string representation of a number.

Example

PRINT "Decimal 65 is represented in hexadecimal as "; PRINT "&H" + LTRIM$(STR$(41)) PRINT VAL(RIGHT$("Microsoft 1990", 4))