0 থেকে 255 পর্যন্ত সংখ্যা প্রকাশ করতে পারে0x00 থেকে 0xFF.<<>> স্পেশাল ফর্ম ব্যবহার করে।
255-এর চেয়ে বড় ইন্টিজার ব্যবহার করলে কেবল শেষ ৮টি বিট ব্যবহৃত হয়, যদি না আপনি :: অপারেটরের মাধ্যমে ব্যবহার করার ইউনিট এবং/অথবা সাইজ উল্লেখ করেন।<>/2 দিয়ে বিটস্ট্রিং/বাইনারি/স্ট্রিং কনক্যাটিনেট করা যায়।<<255>> == <<0xFF>>
# Overflowing bits are truncated
<<256>> == <<0>>
<<256::size(16)>> == <<1, 0>>
<<"Hello">> == <<72, 101, 108, 108, 111>>
নাল-বাইট হলো <<0>>-এর অপর একটি নাম।
# This string has a string length of 5, but is made up of 7 bytes
string = "cześć"
String.length(string) != byte_size(string)
# Even emoji strings are encoded binaries
"👍" == <<240, 159, 145, 141>>
# Ignore the first 8 bytes, bind the remaining variable sized binary to `body`
<<_::binary-size(8), body::binary>>
স্ট্রিংয়ের ক্ষেত্রেও এটি করা যায়:
# bind the first 5 bytes to `name`,
# match the string literal " the ",
# bind remaining bytes to `species`
<<name::binary-size(5), " the ", species::binary>> = <<"Frank the Walrus">>
{name, species}
# => {"Frank", "Walrus"}