Val
From Free Pascal wiki
Jump to navigationJump to search
Procedure Val converts the String value S to its numeric representation.
S is a string-type expression; it must be a sequence of characters that form a signed whole number. V is an integer-type or real-type variable. Code is a variable of type Integer. If the string is invalid, the index of the offending character is stored in Code; otherwise, Code is set to zero.
Declaration
procedure Val(S; var V; var Code: Integer);
See also: