English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This method is used to convert binary values to integer values.
binary_to_integer(binaryvalue)
binaryvalue −This is a binary value, which needs to be converted to an integer value.
Return an integer value from a binary value.
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[binary_to_integer(<<"2">>)]).
Output Result
When we run the above program, we will get the following results.
2