# VAL()

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
VAL( string$ )

Description:
Returns the numerical value of the ‘string$’. If 'string$' is an invalid number the function will return zero.
This function will recognise the &H prefix for a hexadecimal number, &O for octal and &B for binary.

PRINT VAL("&hFFFF")
PRINT VAL("fred")
PRINT VAL("23e4")
Output:
65535
0
230000

Last edited: 05 October, 2020