Home

1111111001101b

1111111001101b is a binary numeral literal, with the trailing b indicating base-2. The digits are 13 bits long.

Its value in decimal is 8141. In hexadecimal, it corresponds to 0x1FCD. The binary string can be

The pattern consists of seven consecutive 1 bits, followed by two 0 bits, then 1101. The number

In computing, such notations appear in various contexts as binary literals. Some languages use a prefix,

As an example of a binary constant, 1111111001101b illustrates how a bit string encodes a specific

verified
by
summing
powers
of
two:
2^12
+
2^11
+
2^10
+
2^9
+
2^8
+
2^7
+
2^6
+
2^3
+
2^2
+
2^0
=
8141.
is
odd
and
not
a
power
of
two.
If
padded
to
16
bits,
it
would
be
0001
1111
1100
1101.
such
as
0b1111111001101,
while
others
(notably
hardware
description
or
symbolic
contexts)
may
use
a
suffix
like
b,
or
a
form
such
as
13'b1111111001101
in
Verilog.
The
exact
syntax
depends
on
the
language
or
tool,
but
the
underlying
meaning
remains
the
same:
it
denotes
the
binary
value
represented
by
the
digit
sequence.
integer
and
how
different
numeral
systems
(binary,
hexadecimal,
decimal)
relate
to
one
another.