You are Here: Home

# Computer science watch

1. Someone teach me a bit of computer science- hexadecimals
I’ve got a exam this week and I was absent the lesson for hexadecimals, even though my teacher had explained it to me I still didn’t get it and I’ve been searching on the internet and nothings really helping can someone tell me how to work it all out
2. (Original post by rummaysiauddin)
Someone teach me a bit of computer science- hexadecimals
I’ve got a exam this week and I was absent the lesson for hexadecimals, even though my teacher had explained it to me I still didn’t get it and I’ve been searching on the internet and nothings really helping can someone tell me how to work it all out
It's base 16, with the digits representing 10-15 written as a-f, so that they're single characters. Often, hex numbers are prefixed with '0x' to signal that it's base 16.

For example, 0xfa2b in decimal would be (b=11, a=10, f=15)

Assuming that you've already done binary, then conversion between the two is easy, as each group of 4 bits represents one hex digit.
3. An easy way of converting to hex is by getting the denary into binary form (or starting from binary form) and splitting nibbles. For example

01100001
becomes
1110 0001

the left nibble contains 4 + 2 = 6, and the right contains 1.
Therefore that byte is [14, 1] in hex which is [E 1]

From 0-9 the numbers represent exactly the denary value they hold, after that they represent letters (up to 15 since that is the max value a nibble can hold), with 10 = A, 11 = B and so on. F is the hex value.

### Related university courses

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: November 14, 2017
Today on TSR

### Edexcel C3 Maths Unofficial Markscheme

Find out how you've done here

### 3,217

students online now

Exam discussions

### Find your exam discussion here

Poll
Useful resources

Can you help? Study Help unanswered threadsStudy Help rules and posting guidelines

## Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE