// 0[bB][01]+n?
0b100110100000110011110010010
# 0[bB](?:_?[01])+
# 0b[01]+(_[01]+)*
// 0b[01_]+
-- 0[bB]_*[01](_*[01])*
# 0b[01]+
% 0b[01]+
# 0b[01]+((_[01]+)+)?
-- b'[01]+'
// 0[Bb][01_]+
// 0[bB][01]+
// 0[bB][01][01_]*[uU]?[yslLn]?
-- B"[01_]+"
// ([0-9]+)|(\'b)[01]+
0b110011
-- 0[bB][01]+
// \$([01]{4})(_[01]{4})+
// ([1-9][_0-9]*)?\s*\'[sS]?[bB]\s*[xXzZ?01][_xXzZ?01]*
/ [01]+b
// 0[Bb][01_]+([tTsSiIlLvV]|ll|LL|([iIuU])(8|16|32|64))?
// [01]+b
' \%[10]+
0b0001010101
`2_101` would evaluate as a binary number.
|| num = 0b010101
// The same as c
Languages with Binary Literals include JavaScript, Python, Java, Perl, Swift, Haskell, Elixir, Prolog, Julia, Zig, MySQL, Reason, D, Chapel, F#, Coq, OCaml, VHDL, F*, Verilog, C3, Eiffel, Opa, Futhark, Ceylon, SystemVerilog, NumPy, K, Felix, AspectJ, ooc, Isabelle, Logtalk, BlitzMax, Whiley, Monkey, Earl Grey, BlitzBasic, Croc, Jule, FloScript, MiniD, Savi, Aardvark, Speedie, parasail, Crap, nimrod, CBOR data definition language
Languages without Binary Literals include progsbase
View all concepts with or missing a hasBinaryNumbers measurement
Read more about Binary Literals on the web: 1.