Home

0b100110001110

0b100110001110 is a binary literal, a way to write a number in base 2 that uses the 0b prefix to indicate binary notation in many programming languages. It encodes a 12-bit pattern rather than a decimal or hexadecimal representation.

The bit pattern 100110001110 corresponds to the unsigned integer 2446 in decimal and 0x98E in hexadecimal.

In computing, such binary literals are commonly used to initialize constants, specify bitmasks, or represent raw

The 0b prefix appears in several programming languages, including Python, Rust, JavaScript (ECMAScript 2015 and later),

As
a
12-bit
value,
it
can
be
padded
to
larger
widths
when
needed;
for
example,
as
a
16-bit
value
it
becomes
0000100110001110
(0x098E).
data
in
memory,
network
protocols,
or
hardware
registers.
The
interpretation
of
0b100110001110
depends
on
the
surrounding
context,
such
as
whether
the
bits
represent
separate
fields,
an
address,
an
opcode,
or
a
piece
of
data
within
a
larger
structure.
and
newer
versions
of
C/C++.
It
is
one
of
several
base
notations
used
for
numeric
literals,
alongside
decimal
(base
10)
and
hexadecimal
(base
16).