Converts a string value to its numeric representation.
procedure Val(S; var V; var Code: Integer);
S string-type variable; must be a sequence of characters that
form a signed whole number
V integer-type or real-type variable
Code variable of type Integer.
Windows, Real, Protected
Converts the string value (S) to its numeric representation, as if it were read from a text file with Read.