derdev789 wrote:
Translate 1010 0101 0001 0101 1100 base 2 into a Decimal, Octoganal and Hexadecimal unit.
decimal
remember each digit is a power of 2 so just write the power of 2 it’s equal to under it from right to left (that’s how I do it)
for example if I had 101101011 I’d write
1 — -0 — -1 — -1 — -0 — -1 — -0 — -1 — -1
256-128-64 — 32 — 16 — 8 — -4 — -2 — -1
(I put dashes because spaces don’t space out correctly when you post - obviously you can write in small letters the power of 2 below each digit without spacing it out as much as I did)
Then add all the numbers that are under 1’s.
octal
group them in 3 (starting from the RIGHT!) then write the equivalent number
hex
same as octal, but in groups of 4 (just like you wrote it at the start)
note: usually most people will write all the numbers from 000/0000 to 111/1111 and their octal/hex equivalent and refer to the table when translating. of course someone who works with hexdumps all day (crackers/hackers/reverse engineers) have that stuff memorized, but it’s not worth memorizing otherwise.