Element - b
- Binary
Characters:
b
Description
Convert a number or string to binary
Overloads
num
-bin(a) (list of binary digits of a)
str
-[bin(ord(char)) for char in a] (list of binary digits for each codepoint in a)
Examples
5 b
=⟨1|0|1⟩
` ` b
=⟨⟨1|0|0|0|0|0⟩⟩
⟨2|3⟩ b
=⟨⟨1|0⟩|⟨1|1⟩⟩
-10 b
=⟨-1|0|-1|0⟩