Aller au contenu principal

bin2hex

Converts binary data into hexadecimal representation

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

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

{{ include("includes/strings.sn") }}

AUTHOR

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

MODIFICATIONS

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

Edit

© 2024 extenso Inc. All rights reserved.