Home

0b00000000

0b00000000 is a binary literal consisting of eight binary digits all set to zero. The 0b prefix signals base-2 notation in many programming languages, so the sequence 00000000 represents the value zero in binary. As an eight-bit pattern, it corresponds to the unsigned decimal value 0; in typical signed representations such as two's complement, it also represents zero.

In decimal, hex, and ASCII terms, 0b00000000 equals 0x00 and the character NUL in ASCII. In digital

In software development, 0b00000000 is often used to initialize a byte or to express a no-bits-set condition.

See also: binary numeral system, two's complement, ASCII NUL, bit masking.

electronics,
the
pattern
means
all
bit
lines
are
low,
which
is
commonly
interpreted
as
false
or
off
in
various
circuits
and
logic
designs.
The
width
of
the
literal
can
vary
by
language;
while
this
example
shows
eight
bits,
a
binary
literal
may
be
written
with
different
lengths
depending
on
the
context.
It
also
serves
as
a
zero-valued
mask
in
bitwise
operations:
ANDing
with
0b00000000
yields
zero,
while
ORing
with
0b00000000
or
XORing
with
0b00000000
leaves
the
other
operand
unchanged.
Because
it
represents
the
numeric
zero,
it
is
typically
interpreted
as
false
in
boolean
contexts
in
many
languages.