English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
이 메서드는 바이너리 값을 원자로 변환하는 데 사용됩니다.
binary_to_atom(binaryvalue)
binaryvalue −이는 원자로 변환해야 할 바이너리 값입니다.
어토믹을 반환합니다.
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[binary_to_atom(<<"Erlang">>, latin1)]).
출력 결과
위의 프로그램을 실행하면 다음과 같은 결과를 얻게 됩니다.
‘Erlang’