creating a binary number

Jacob jacob01@REDACTED
Thu Dec 9 17:16:58 CET 2021


On 12/9/21 5:04 PM, Java House wrote:

> Hello
>
> I am trying to build a binary number but I cannot find the correct way:
> 13> <<1:1/bitstring,
> 0:1/bitstring,0:1/bitstring,0:1/bitstring,0:1/bitstring,0:1/bitstring,0:1/bitstring,0:1/bitstring>>.

It's either << <<1>>:1/bitstring >> or << 1:1 >> (for one bit).

Jacob



More information about the erlang-questions mailing list