Skip to content

Commit

Permalink
Simpler integer to hex string conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmanana committed Nov 10, 2010
1 parent c4991ff commit 5715632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ibrowse_lib.erl
Expand Up @@ -166,7 +166,7 @@ status_code(_) -> unknown_status_code.
%% @doc Returns a string with the hexadecimal representation of a given decimal. %% @doc Returns a string with the hexadecimal representation of a given decimal.
%% N = integer() -- the number to represent as hex %% N = integer() -- the number to represent as hex
%% @spec dec2hex(N::integer()) -> string() %% @spec dec2hex(N::integer()) -> string()
dec2hex(N) -> lists:flatten(io_lib:format("~.16B", [N])). dec2hex(N) -> integer_to_list(N, 16).


%% @doc Implements the base64 encoding algorithm. The output data type matches in the input data type. %% @doc Implements the base64 encoding algorithm. The output data type matches in the input data type.
%% @spec encode_base64(In) -> Out %% @spec encode_base64(In) -> Out
Expand Down

0 comments on commit 5715632

Please sign in to comment.