Core Function RevHex
From Sputnik Wiki
(Difference between revisions)
(→Example) |
m (1 revision) |
||
(3 intermediate revisions by one user not shown) | |||
Line 30: | Line 30: | ||
say "old: $old"; // Prints 1A2B3C4D | say "old: $old"; // Prints 1A2B3C4D | ||
say "new: $new"; // Prints 4D3C2B1A | say "new: $new"; // Prints 4D3C2B1A | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] |
Latest revision as of 12:37, 14 June 2015
RevHex( <expression> )
Contents |
Description
Reverse a string of hex digits.
Parameters
expression
The string containing hex digits to use.
Return Value
Success: Returns reversed hex string.
Failure: Returns empty string.
Remarks
None.
Example
$old = "1A2B3C4D"; $new = RevHex($old); say "old: $old"; // Prints 1A2B3C4D say "new: $new"; // Prints 4D3C2B1A