Next compiles well
-module(cipher_id).
-export([a1/1]).
a1(I) ->
binary:encode_unsigned(I).
But then i try to call cipher_id:a1(I) it crashes with
** exception error: undefined function binary:encode_unsigned/1
The same happened if try to call function from binary module in erl shell. m() outputs lists in which no binary module present.
From the Erlang documentation of the binary module:
From the proposal page:
You’re using R13B03. My feeling is that you need to upgrade to a newer Erlang installation. Binaries for Ubuntu are available at:
http://www.erlang-solutions.com/section/132/erlang-otp-packages