BIN2HEX

NAME

bin2hex - Converts binary data into hexadecimal representation

SYNOPSIS

bin2hex(string,uppercase = true)

PARAMETERS

string
A string written in binary
uppercase
It is set to true if the user wants the answer to be given in uppercase letters

RETURN

Returns the hexadecimal representation of the given string.

EXAMPLES

Note: In the following examples, the _ between the { should be removed to make it work.

in:  res={_{bin2hex("\n\ra\r\nb\rc\nd",true);}}.
out: res=0A0D610D0A620D630A64.

in:  res={_{bin2hex("\n\ra\r\nb\rc\nd",uppercase:false);}}.
out: res=0a0d610d0a620d630a64.

SEE ALSO

String

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com