The Student Room Group

GCSE Computer Science OCR - Hexadecimal?

How can i convert 55 into hexadecimal?
base 16, whats the biggest power of 16 that is less than 55? 16. How many 16s go into 55? 3 with 7 left over. the next power of 16 is 1 (16^0). how many 1s go into 7? 7. so the answer is 37,

Note, if you end up at 1 with a value larger than 9, then the number becomes letters. take the number 58. 3 16s, 10 left over, you would assume then that the number is 310, but it is not, the 10 becomes A. so the answer is 3A.

After 10 we have:

11: B
12: C
13: D
14: E
15: F

Does that help your understanding?

Edit, i must say, if you end up with any power of 16 with a number larger than 9 you must replace them with letters, must this would only occur with quite large numbers that they would not likely give you in a GCSE exam, but its worth noting that its not only the case when you get to 1s.
(edited 7 years ago)
Reply 2
Convert 55 into Binary: 00110111
Split it into 2 nibbles: 0011 0111
Calculate the value of each nibble in denary: 3 7
Convert each digit into Hex: 37

NOTE: If you end up at step 3 with a values of 10 or more:
10 is A
11 is B
12 is C
13 is D
14 is E
15 is F
37
Original post by aqvague
Convert 55 into Binary: 00110111
Split it into 2 nibbles: 0011 0111
Calculate the value of each nibble in denary: 3 7
Convert each digit into Hex: 37

NOTE: If you end up at step 3 with a values of 10 or more:
10 is A
11 is B
12 is C
13 is D
14 is E
15 is F


There is also the binary first method, quicker if you are good with binary.
Original post by Divinchi
How can i convert 55 into hexadecimal?


how many times does 16 go into 55?

55/16 = 3.4375
or to put it another way
3 remainder 7

answer 37
Reply 6
I know an easier method but it is a bit longer.

First convert 55 into binary so that would be 00110111 then split it in half so that would be 0011 0111. After you have done this convert each of the 2 into denary you should get this. 3 7 therefore it would be 37 in Hexadecimal. If it is 10 or above then you use alphabets ie A for 10 B for 11 and so on...

Hope that helps if youve got any confusion ask away
Omg this is soooo ARGH!
Original post by Joinedup
how many times does 16 go into 55?

55/16 = 3.4375
or to put it another way
3 remainder 7

answer 37


Sorry, but how did you get '37' from '3.4375' ?!?
Original post by Roman_Akira
Sorry, but how did you get '37' from '3.4375' ?!?


3*16 = 48
which is to say 3 is the highest number of 16s that go into 55 without going over
we write 3 in the 16s column

but there's there's a bit left over, we still need to write something in the units column

you could get the remainder by doing 55-48 = 7

alternatively because it's integer divided by 16 the leftover 0.4375 must be a whole number of 16ths

0.4375 is 7/16ths

either way 7 goes into the units column and we're finished

Quick Reply

Latest

Trending

Trending