Base-16 literal
0x40
- Base 16
- 7 bits
- = 64
0x40 is a hexadecimal literal equal to 64 in decimal. It needs 7 bits (1 bytes) of storage, and is 0x40 in hexadecimal and 1000000 in binary.
In every base
Decimal64
Binary1000000
Octal100
Hexadecimal40
Base 3220
Base 361S
Prefixed literals0x40 · 0o100 · 0b1000000
Bit width & storage
Significant bits7
Bytes needed1
Fits in 8 bitsYes
Fits in 16 bitsYes
Fits in 32 bitsYes
Fits in 64 bitsYes
Padded to 8 bits01000000
Padded to 32 bits00000000000000000000000001000000
Read another way
Bitwise operations
NOT (32-bit)4,294,967,231
Shift left by 1128
Shift right by 132
Population count1the number of set bits
Lowest set bit64
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
The same value
Also reads as
U+0040 (unicode character)
- U+0040
- @
- Other punctuation
U+0040 is code point 64 (@), an other punctuation in the Basic Latin (ASCII) block of the Basic Multilingual Plane. It takes 1 byte in UTF-8 and 1 unit in UTF-16.
Identity
Code pointU+0040
Decimal64
Character@
General categoryOther punctuation
BlockBasic Latin (ASCII)
PlaneBasic Multilingual Planeplane 0
Official nameNot includedthe Unicode Character Database is not bundled; a stale copy would be worse than none
Encodings
UTF-8401 byte
UTF-160040a single unit
UTF-3200000040
Binary1000000
Bytes in UTF-8 vs UTF-161 vs 2UTF-16 is not always smaller, even for non-Latin text
Writing it in code
HTML numeric entity@
HTML hex entity@
CSS escape\0040
JavaScript\u0040
Python\u0040
Percent-encoded (URL)%40
Things that catch people out
JavaScript string length1
Needs a surrogate pairNo
Safe in a URL unescapedNo
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Nerdulate something else
Nothing in mind? Surprise me · today’s page