HexToInteger (String function): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 21: | Line 21: | ||
===See also=== | ===See also=== | ||
[[List of | [[List of intrinsic String methods]] | ||
[[Category:Intrinsic String methods|HexToInteger function]] | [[Category:Intrinsic String methods|HexToInteger function]] | ||
[[Category:Intrinsic methods]] | [[Category:Intrinsic methods]] | ||
[[Category:System methods]] | [[Category:System methods]] |
Revision as of 16:09, 29 December 2010
This intrinsic function returns the integer value of a hex-encoded string.
HexToInteger is available as of version 7.5 of the Sirius Mods.
HexToInteger syntax
%num = string:hexToInteger([Signed=bool])
Syntax Terms
- %num
- A numeric variable to receive the integer value of the method object string.
- string
- A hex-encoded string value that contains an even number of characters.
- Signed=bool
- This name-required argument ('Signed') is a Boolean value that indicates whether the method object string is converted to a signed integer. If 'True', the method object is treated as if it were preceded by a negative sign, a two's complement conversion is performed, and the returned value is preceded by a negative sign. Signed is an optional argument that defaults to 'False', which produces an unsigned conversion.