Base-2 literal
0b100000000000
- Base 2
- 12 bits
- = 2,048
0b100000000000 is a binary literal equal to 2,048 in decimal. It needs 12 bits (2 bytes) of storage, and is 0x800 in hexadecimal and 100000000000 in binary.
In every base
Decimal2,048
Binary100000000000
Octal4000
Hexadecimal800
Base 32200
Base 361KW
Prefixed literals0x800 · 0o4000 · 0b100000000000
Bit width & storage
Significant bits12
Bytes needed2
Fits in 8 bitsNo
Fits in 16 bitsYes
Fits in 32 bitsYes
Fits in 64 bitsYes
Padded to 8 bitsDoes not fit
Padded to 32 bits00000000000000000000100000000000
Read another way
Bitwise operations
NOT (32-bit)4,294,965,247
Shift left by 14,096
Shift right by 11,024
Population count1the number of set bits
Lowest set bit2,048
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
The same value
Nerdulate something else
Nothing in mind? Surprise me · today’s page