Home

0x4000000000000

0x4000000000000 is a hexadecimal integer literal that represents the value 2^50. In decimal, this equals 1,125,899,906,842,624. In binary, it is a 1 followed by 50 zeros. The hexadecimal form itself is 0x4000000000000, consisting of a single nonzero nibble (4) at the most significant position and zeros elsewhere.

This value is notable because 2^50 bytes constitute one pebibyte (PiB). As such, 0x4000000000000 is often encountered

In programming practice, literals of this form appear in low-level code that handles memory layout, file sizes,

Related power-of-two constants include 0x1000000000000 (2^48) and 0x8000000000000 (2^51), which similarly denote large binary thresholds or

in
contexts
involving
large
memory
sizes,
data
capacities,
or
addressing
schemes
that
use
powers
of
two.
In
software
and
hardware
discussions,
constants
like
this
can
serve
as
memory-size
boundaries,
or
as
bit
masks
with
a
single
bit
set
at
position
50.
or
performance
considerations
tied
to
binary
multiples.
They
help
express
large,
exact
powers
of
two
in
a
compact,
unambiguous
way.
masks
in
hex
notation.