// 0[bB][01][01_]*[lL]?
// 0[bB][01]+n?
0b100110100000110011110010010
# 0b[01]+(_[01]+)*
-- b'[01]+'
// 0b[01_]+
-- 0[bB]_*[01](_*[01])*
# 0b[01]+((_[01]+)+)?
# 0b[01]+
// ([0-9]+)|(\'b)[01]+
// 0[bB][01][01_]*[uU]?[yslLn]?
-- 0[bB][01]+
// 0[Bb][01_]+
-- B"[01_]+"
// 0[bB][01]+
' \%[10]+
// \$([01]{4})(_[01]{4})+
// ([1-9][_0-9]*)?\s*\'[sS]?[bB]\s*[xXzZ?01][_xXzZ?01]*
0b110011
|| num = 0b010101
/ [01]+b
// 0[Bb][01_]+([tTsSiIlLvV]|ll|LL|([iIuU])(8|16|32|64))?
0b0001010101
// [01]+b
Languages with Binary Literals include Java, JavaScript, Python, Perl, MySQL, Swift, Haskell, TypeScript, Julia, Prolog, Elixir, Verilog, Reason, F#, Eiffel, OCaml, D, VHDL, Chapel, Coq, Monkey, BlitzBasic, Zig, Opa, Ceylon, F*, SystemVerilog, Cython, Isabelle, MiniD, C3, Speedie, AspectJ, Croc, K, Futhark, Felix, Jule, Pizza, BlitzMax, ooc, Whiley, Logtalk, Earl Grey, parasail, FloScript, Savi, CLPR, nimrod, CBOR data definition language, Oracle Java, Deesel, GAEA, Progol
Languages without Binary Literals include progsbase
This question asks: Does the language have a type and syntax for binary numbers?
Read more about Binary Literals on the web: 1.
HTML of this page generated by Features.ts