Home

0b11110000

0b11110000 is a binary literal that encodes the 8-bit pattern 11110000. In hexadecimal this pattern is 0xF0, and in unsigned decimal it equals 240.

If interpreted as an 8-bit signed value using two's complement, 0b11110000 represents -16. The same bit pattern

In many programming languages, the 0b prefix denotes a binary literal, allowing direct specification of a binary

The bit pattern 11110000 has a distinct nibble structure: the upper nibble (bits 7–4) is 1111 and

In encoding contexts, 0xF0 (the same byte in hexadecimal) is not part of standard ASCII. In ISO-8859-1

0b11110000 thus serves as a simple, well-known byte pattern used to illustrate binary notation, numeric interpretation

therefore
has
different
numeric
meanings
depending
on
whether
it
is
treated
as
unsigned
or
signed
data.
value.
For
example,
0b11110000
is
commonly
used
in
demonstrations
of
bitwise
operations,
masking,
and
bit
shifts.
the
lower
nibble
(bits
3–0)
is
0000.
This
makes
it
a
convenient
example
of
nibble-level
manipulation
and
alignment,
such
as
testing
high-bit
flags
or
configuring
8-bit
registers.
(Latin-1),
the
byte
0xF0
maps
to
the
Latin
small
letter
eth
(ð).
In
UTF-8,
0xF0
is
a
leading
byte
for
a
four-byte
sequence
and
cannot
stand
alone
as
a
valid
character.
under
different
signedness,
and
practical
bitwise
operations
in
computing.
See
also
binary
literals,
two's
complement,
and
hexadecimal
notation.