What's the largest number it can store?
More importantly, could someone explain why dword can't store a larger number?
It has nothing to do with the base used per se. The largest number a DWORD can store is constrained by the fact that DWORD (at least in typical usage of DWORD, which is a Microsoft typedef) is a 32 bit wide unsigned integer. That means the largest number it can store is 2^32-1.
11111111111111111111111111111111
.0xFFFFFFFF,
as @GregHewgill said.4294967295
.37777777777
.Those are the same number just using different bases. Binary shows what's truly going on at a machine level. Maximum value of DWORD, which is 32 bits wide, has all 32 bits on.
Assume that your dword
is 32 bits. The largest number that can be stored in 32 bits in binary is all 1s:
11111111111111111111111111111111
In base 16 (hex), this is
0xFFFFFFFF
You can't store an integer any larger than this because then you would need 33 bits.