Difference between revisions of "Val"
From Lazarus wiki
Jump to navigationJump to search (Created page with "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...") |
|||
Line 1: | Line 1: | ||
+ | {{Val}} | ||
+ | |||
Procedure '''Val''' converts the [[String]] value '''S''' to its numeric representation. | Procedure '''Val''' converts the [[String]] value '''S''' to its numeric representation. | ||
Revision as of 20:48, 22 March 2018
│
Deutsch (de) │
English (en) │
русский (ru) │
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: