Questions about this topic? Sign up to ask in the talk tab.
Difference between revisions of "Bitwise math/Binary to Hexadecimal"
From NetSec
GertieUbpgdd (Talk | contribs) (Created page with "<noinclude>{{subpage|Bitwise math}}</noinclude> The past exercises have featured working with 4 bits at once (4 values ranging from 0-1, e.g. 0001). This is known as a ''nybble''...") |
(No difference)
|
Latest revision as of 01:15, 19 July 2012
- back to Bitwise math
The past exercises have featured working with 4 bits at once (4 values ranging from 0-1, e.g. 0001). This is known as a nybble in hexadecimal. A byte is made of two nybbles (8 bits make a byte).
In hexadecimal, there is a 1’s placeholder and a 16’s placeholder. Hexadecimal is 0 through 9 and A through F. A nybble can hold 16 unique values but the highest value is 15 because one of the values is 0. A nybble is a single hex digit. So, A = 10, B = 11, so on and so forth, F = 15.
In hex, AF is obtained as a byte.
AF = 175 in decimal because A is in the 16’s placeholder
- A = 10, 10*16=160,
Plus F which is in the 1’s placeholder,
- F = 15, 15*1=15
Therefore 160(A)+15(F) = 175.