0% found this document useful (0 votes)
22 views2 pages

Notes M1 3

Math notes

Uploaded by

Prabh Bains
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

Notes M1 3

Math notes

Uploaded by

Prabh Bains
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Notes

February 3, 2022

Converting Between Hexadecimal and Binary


Convert 𝐹516 into Binary.
1. Convert into Decimal

15 × 16 + 5 × 1 = 240 + 5
= 24510

2. Convert your Decimal value into Binary.


24510
245 ÷ 2 = 122 𝑅1
122 ÷ 2 = 61 𝑅0
61 ÷ 2 = 30 𝑅1
30 ÷ 2 = 15 𝑅0
15 ÷ 2 = 7 𝑅1
7 ÷ 2 = 3 𝑅1
3 ÷ 2 = 1 𝑅1
1 ÷ 2 = 0 𝑅1

OR Take the binary representation and replace the hexadecimal character.


𝐹 = 1111
5 = 0101

𝐹516 = 1111 01012

Convert 9𝐴2𝐸16 into Binary.


9𝐴2𝐸16 = 1001 1010 0010 11102

9 = 1001
𝐴 = 10 = 1010
2 = 0010
𝐸 = 14 = 1110

Convert 0010 0101 1010 0110 1011 0011 10102 into hexadecimal.

25𝐴6𝐵3𝐴16

Convert 1101 0110 1011 0011 1010 1010 1110 1010 11102

𝐷6𝐵3𝐴𝐴𝐸𝐴𝐸16
Notes
February 3, 2022

MAC Addresses
A theoretical MAC address consisting of 4 hexadecimal numbers. _ _ : _ _ How many MAC addresses
could be stored with 4 hexadecimal numbers?

We need to count from 0 0 : 0 0 to F F : F F. What is 𝐹𝐹𝐹𝐹16 in decimal?


4096 256 16 1

= 15 × 4096 + 15 × 256 + 15 × 16 + 15 × 1 + 1
= 65535 + 1
= 6553610

Adding 1 in: Decimal Hexadecimal

1 1 1 1
9 9 F F F F
+ 1 + 1
1 0 0 1 0 0 0 0

Decimal Equivalent Example


00:00→99:99

1111 1111 1111 1111


Computer Notation
0x – hexadecimal
0b – binary

Bits and Bytes


Bit: Smallest value that a computer can store
Byte: Consists of 8 bits

4 bit binary number


11112 = 8 + 4 + 2 + 1
= 1510

2710
27 = 16(1) + 8(1) + 4(0) + 2(1) + 1(1)
I need 5 bits in order to store the decimal value 27.

You might also like