Home

0xD

0xD is the hexadecimal literal representing the value 13. The prefix 0x is used in many programming languages, including C, C++, Java, JavaScript, and Python, to indicate that the following digits are in base-16. When encountered in code, 0xD is interpreted as the integer 13.

In binary, 13 is 1101. As a 4-bit nibble, its representation is 1101, and in an 8-bit

Common uses of 0xD include serving as a numeric constant in source code, as part of larger

In ASCII and Unicode contexts, the decimal value 13 corresponds to the carriage return control character. Its

See also: hexadecimal notation, hex literals, ASCII control characters.

byte
it
would
be
00001101.
The
statement
“0xD”
and
“13”
refer
to
the
same
value,
just
expressed
in
different
numeric
bases.
hexadecimal
values
such
as
0xD0
or
0x1D3,
and
in
bitwise
operations,
masks,
and
low-level
programming
tasks.
Hex
literals
are
often
case-insensitive,
so
0xD
and
0Xd
denote
the
same
value
in
most
languages.
hexadecimal
form
is
0x0D,
so
0xD
and
0x0D
represent
the
same
numeric
value,
with
0x0D
being
the
explicit
two-digit
code
used
in
character
encoding
and
protocol
specifications.