Home

0b1000100001001

0b1000100001001 is a binary integer literal that uses the 0b prefix to indicate base-2 notation in several programming languages. The sequence contains 13 bits.

In decimal form, the value is 4361, and in hexadecimal it is 0x1109. The bit pattern has

As an unsigned 13-bit number, 0b1000100001001 equals 4361. If interpreted as a signed 13-bit two's complement

Context and usage: binary literals like this are commonly used in programming to specify bit patterns and

Language support: the 0b prefix is supported in many modern languages, including Python, JavaScript (ES6 and

Summary: 0b1000100001001 is a 13-bit binary constant representing the unsigned value 4361 (0x1109), with 1-bits at

1s
at
positions
12,
8,
3,
and
0
(counting
from
0
as
the
least
significant
bit),
corresponding
to
2^12,
2^8,
2^3,
and
2^0.
value,
the
magnitude
would
be
negative:
4361
-
2^13
=
-3831.
In
many
practical
contexts,
the
value
is
treated
as
an
unsigned
integer
unless
a
specific
signed
interpretation
is
required.
masks
precisely.
Such
literals
can
be
useful
in
bitwise
operations,
testing,
and
configuring
low-level
flags
or
hardware
interfaces
where
individual
bits
carry
meaning.
later),
C++14
and
newer,
Rust,
and
Go,
among
others.
This
enables
direct
representation
of
binary
constants
without
manual
conversion.
12,
8,
3,
and
0,
and
it
may
be
interpreted
differently
depending
on
the
chosen
numeric
context.