Base-8 literal
0o400
- Base 8
- 9 bits
- = 256
0o400 is a octal literal equal to 256 in decimal. It needs 9 bits (2 bytes) of storage, and is 0x100 in hexadecimal and 100000000 in binary.
In every base
Decimal256
Binary100000000
Octal400
Hexadecimal100
Base 3280
Base 3674
Prefixed literals0x100 · 0o400 · 0b100000000
Bit width & storage
Significant bits9
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 bits00000000000000000000000100000000
Read another way
Bitwise operations
NOT (32-bit)4,294,967,039
Shift left by 1512
Shift right by 1128
Population count1the number of set bits
Lowest set bit256
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