Home

0b00000001

0b00000001 is a binary literal used in many programming languages to denote the binary number 00000001. The 0b prefix signals base-2 digits, and the eight digits shown form a single 1 bit in the least significant position.

Numerically, it represents 1 in unsigned form. In an eight-bit two's complement representation it also represents

Common uses include bitwise operations, bit masks, and configuring hardware registers. Operations such as shifts can

Language support for binary literals varies. The 0b prefix is supported in many modern languages (for example,

In ASCII, the byte 0x01 corresponds to the control character Start of Heading (SOH); it is non-printable.

+1.
The
pattern
is
commonly
used
as
a
bit
flag
with
only
the
lowest-order
bit
set.
transform
the
value:
0b00000001
<<
1
equals
0b00000010,
while
0b00000001
>>
1
equals
0b00000000
on
an
eight-bit
width.
Python,
JavaScript,
and
newer
C++
standards),
but
some
languages
and
older
standards
do
not
recognize
it.
When
not
supported,
hexadecimal
or
decimal
equivalents
must
be
used.
The
relation
0x01
and
0b00000001
reflects
the
same
bit
pattern
in
different
representations.