This method is used to convert a binary value to an atom value.
binaryvalue − This is the binary value which needs to be converted to an atom value.
An atom based on the binary value.
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[binary_to_atom(<<"Erlang">>, latin1)]).
The output of the above program is as follows.