Home
Script Language
Conversions
StrToInt
See also:
IntToStr
,
StrToIntDef
Index
Statistical Background
StrToInt
Declaration:
StrToInt
(s: string): integer;
Converts the string
s
, which represents an integer-type number in either decimal or hexadecimal notation, to a 32-bit number. Hint: If
s
does not represent a valid number, a value of -1 is returned.