Val()

Last Modified: 9/9/2021

Converts a numeric value in a String into an Integer or Long variable.

Arguments

NameTypeRequiredDescription
Expression String Yes The String variable that contains the numeric value to convert to a non-String variable.

Example

Syntax: Val(<Expression>)
    b$ = "2112"
    a = Val(b$)
    Print a

See Also

Asc(), Bin$(), Chr$(), Hex$(), Str$()