Home

0x2D4

0x2D4 is a hexadecimal integer literal used in computing to denote the value 724 in decimal. The prefix 0x signals hexadecimal notation, and the digits 2, D, and 4 represent 2, 13, and 4 respectively; combining these yields 2×16^2 + 13×16 + 4 = 724. In binary, 0x2D4 equals 1011010100, with leading zeros omitted as needed.

In programming languages that support hexadecimal literals, 0x2D4 is a valid constant. For example, in C or

Hexadecimal literals like 0x2D4 are commonly used to express low-level data, memory offsets, hardware registers, or

See also: hexadecimal numeral system; binary and decimal representations; 0x prefix in programming.

JavaScript,
int
x
=
0x2D4;
assigns
the
decimal
value
724
to
x.
The
exact
meaning
of
the
literal
depends
on
context,
including
type
and
the
operation
being
performed,
such
as
a
numeric
value,
a
bit
mask,
or
an
address
component.
color-related
data
when
longer
hex
strings
are
involved.
The
0x
prefix
is
widely
used
in
languages
derived
from
C
and
in
many
tooling
environments
to
distinguish
hex
values
from
decimal
literals.