Signed decimal to 16-bit hex
Type a value in dec to get it in hex (16-bit) instantly.
FFFFhex (16-bit)
The smallest signed register that holds -1 is 1-bit.
Convert the other way: hex (16-bit) to dec
What it means
Where does it sit?
A dash means the value does not fit that width: an 8-bit register holds −128 to 127.
The math
How to convert dec to hex (16-bit)
For a negative n in a w-bit register, bits = 2^w + n: −42 in 8 bits is 256 − 42 = 214 = 1101 0110.
Example: -1 dec = FFFF hex (16-bit).
Every unit
That integer in every register
Tables
dec to hex (16-bit) conversion table
| dec | hex (16-bit) |
|---|---|
| -128 dec | FF80 hex (16-bit) |
| -100 dec | FF9C hex (16-bit) |
| -64 dec | FFC0 hex (16-bit) |
| -42 dec | FFD6 hex (16-bit) |
| -16 dec | FFF0 hex (16-bit) |
| -2 dec | FFFE hex (16-bit) |
| -1 dec | FFFF hex (16-bit) |
| 0 dec | 0000 hex (16-bit) |
| 1 dec | 0001 hex (16-bit) |
| 2 dec | 0002 hex (16-bit) |
| 16 dec | 0010 hex (16-bit) |
| 42 dec | 002A hex (16-bit) |
| 64 dec | 0040 hex (16-bit) |
| 100 dec | 0064 hex (16-bit) |
| 127 dec | 007F hex (16-bit) |
hex (16-bit) to dec conversion table
| hex (16-bit) | dec |
|---|---|
| 0000 hex (16-bit) | 0 dec |
| 0001 hex (16-bit) | 1 dec |
| 0002 hex (16-bit) | 2 dec |
| 0010 hex (16-bit) | 16 dec |
| 002A hex (16-bit) | 42 dec |
| 0040 hex (16-bit) | 64 dec |
| 0064 hex (16-bit) | 100 dec |
| 007F hex (16-bit) | 127 dec |
| FF80 hex (16-bit) | -128 dec |
| FF9C hex (16-bit) | -100 dec |
| FFC0 hex (16-bit) | -64 dec |
| FFD6 hex (16-bit) | -42 dec |
| FFF0 hex (16-bit) | -16 dec |
| FFFE hex (16-bit) | -2 dec |
| FFFF hex (16-bit) | -1 dec |
Quick answers
Quick answers
- How many hex (16-bit) is 1 dec?
- 1 dec is 0001 hex (16-bit).
- How many hex (16-bit) is 10 dec?
- 10 dec is 000A hex (16-bit).
- How many hex (16-bit) is -1 dec?
- -1 dec is FFFF hex (16-bit).
The units
About these units
Signed decimal (dec)
The value as a signed integer.
16-bit hex (hex (16-bit))
A signed short in four hex digits.
Keep going