Home

0000100

0000100 is a seven-character string that can be interpreted in several ways depending on context. When treated as a binary numeral, it represents the decimal value 4, since 0000100 in base 2 equals 4. If read as a decimal string with leading zeros, it corresponds to the number 100. In other common bases, it can represent different values: in octal, it denotes 64; in hexadecimal, it denotes 256. In 7-bit ASCII, the binary value 0000100 corresponds to decimal 4, which is the control character End of Transmission (EOT).

In computing practice, leading zeros are often used to fit fixed-width fields, such as binary data blocks,

memory
addresses,
or
protocol
identifiers.
Some
programming
languages
treat
a
leading
zero
as
an
indicator
of
octal
literals,
so
a
value
like
0000100
can
be
interpreted
as
octal
100,
i.e.,
decimal
64.
Without
context,
the
meaning
of
0000100
is
ambiguous,
as
its
numeric
value
depends
on
the
base
in
which
it
is
interpreted
and
on
how
the
sequence
is
used
within
a
given
system
or
protocol.