CCNA - Converting Between Binary and Decimal Numbering Systems

NetITGeeks
15 May 202208:19

Summary

TLDRThis video explains the process of converting numbers between the decimal (base 10) and binary (base 2) systems. It begins by discussing place values in the decimal system, where numbers are based on powers of ten, and then compares it to the binary system, which only uses two digits (0 and 1). The video walks through examples of converting decimal numbers like 168 to binary and vice versa, including how to interpret binary numbers in IP addresses. The focus is on understanding place values and simplifying the conversion process for easy comprehension.

Takeaways

  • πŸ”’ The video explains binary to decimal conversion, starting with a review of positional notation or place values.
  • πŸ’‘ In the decimal system (base 10), each digit represents powers of 10, such as the ones, tens, hundreds, and thousands places.
  • ✏️ The number 2168 can be broken down into place values: 2 in the thousands place, 1 in the hundreds place, 6 in the tens place, and 8 in the ones place.
  • πŸ” The decimal system uses ten numerals (0-9) in each place value, making it a base-10 system.
  • βš™οΈ Binary is a base-2 system with only two numerals: 0 and 1. Each place value represents powers of 2.
  • πŸ“Š The place values in binary correspond to powers of 2, such as 2^0 = 1, 2^1 = 2, 2^2 = 4, up to 2^7 = 128 for an 8-bit byte.
  • πŸ’» To convert decimal to binary, find the place values where 1 is needed. For example, 168 in binary is 10101000.
  • πŸ”„ The process for converting binary to decimal involves adding up the place values for the positions where a 1 appears. For example, binary 01101101 equals decimal 109.
  • 🌐 The video demonstrates how to convert a binary IP address to decimal. Each octet is calculated separately, such as 11000000 for 192.
  • πŸ“Š In the example, the binary IP address 11000000.10101000.00000001.01100101 converts to the decimal IP address 192.168.1.101.

Q & A

  • What is the significance of place values in the decimal number system?

    -In the decimal system, place values determine the value of a digit based on its position. Each place represents powers of ten, such as ones, tens, hundreds, and thousands.

  • How are the powers of ten related to the place values in the decimal system?

    -In the decimal system, each place value is a power of ten. For example, the ones place is 10^0, the tens place is 10^1, the hundreds place is 10^2, and so on.

  • What does the number 2168 represent in terms of its place values?

    -The number 2168 represents 2 in the thousands place (2000), 1 in the hundreds place (100), 6 in the tens place (60), and 8 in the ones place (8). Added together, this equals 2168.

  • How is binary different from the decimal system?

    -Binary is a base-2 system that uses only two digits, 0 and 1, whereas the decimal system is base-10 and uses digits from 0 to 9. Each place value in binary represents a power of 2.

  • What are the place values in the binary system?

    -In binary, the place values are based on powers of 2, such as 2^0 (1), 2^1 (2), 2^2 (4), 2^3 (8), 2^4 (16), 2^5 (32), 2^6 (64), and 2^7 (128).

  • How do you convert the decimal number 168 into binary?

    -To convert 168 to binary, you identify which powers of 2 sum to 168. This gives 128 (2^7), 32 (2^5), and 8 (2^3), so 168 in binary is 10101000.

  • What is the process of converting a binary number to decimal?

    -To convert binary to decimal, multiply each binary digit by its corresponding power of 2 and sum the values. For example, the binary number 01101101 converts to decimal as 109.

  • How would you convert the binary number 01101101 to decimal?

    -The binary number 01101101 equals 64 + 32 + 8 + 4 + 1, which totals 109 in decimal.

  • What is an IP address, and how is it represented in binary?

    -An IP address is a 32-bit number divided into four 8-bit segments, or octets. Each octet can be represented in binary, and then converted to decimal for easier reading.

  • How do you convert a binary IP address to its decimal form?

    -To convert a binary IP address to decimal, convert each 8-bit binary octet individually to its decimal equivalent, and then combine the four decimal numbers. For example, the binary IP 11000000.10101000.00000001.01100101 converts to 192.168.1.101.

Outlines

00:00

πŸ“Š Understanding Decimal Place Values

This paragraph introduces the concept of positional notation in the decimal (base-10) number system using the example of the number 2168. It breaks down the place values as powers of ten, such as the ones, tens, hundreds, and thousands place, showing how each contributes to the overall value of the number. The author explains how each digit represents a multiplication of the digit with the corresponding power of ten. The discussion includes an example of how numbers are added together in their expanded form (e.g., 2000 + 100 + 60 + 8). This provides a foundation for understanding decimal notation as we use it in everyday counting.

05:02

πŸ’‘ Introduction to Binary Place Values

This section contrasts the decimal system with the binary (base-2) system. In binary, only two digits (0 and 1) are used. It explains how binary place values correspond to powers of two, starting from 2^0 (1) up to higher powers like 2^7 (128). The paragraph includes a detailed example of converting the decimal number 168 into binary by examining which powers of two fit into the number and assigning 1s or 0s to the corresponding place values. This results in the binary representation 10101000 for the decimal number 168. The idea of 8 bits forming a byte in computer processing is also introduced.

Mindmap

Keywords

πŸ’‘Positional Notation

Positional notation refers to the method of representing numbers in which the position of each digit determines its value. In the video, this concept is introduced through the example of the number 2168, where the value of each digit depends on its place (e.g., thousands, hundreds, tens, ones). This is fundamental to both the decimal (base-10) and binary (base-2) number systems.

πŸ’‘Base-10 (Decimal System)

The base-10 system, also known as the decimal system, is the most common numerical system used in everyday life. It is based on powers of ten, with ten possible digits (0-9) in each place value. The video explains this using the number 2168, where each digit represents a power of 10, such as 10^0 for the ones place or 10^3 for the thousands place.

πŸ’‘Base-2 (Binary System)

The binary system, or base-2, is a number system used in computing that only uses two digits: 0 and 1. Each digit in a binary number represents a power of two. The video shows how to convert decimal numbers like 168 into binary (10101000), illustrating the importance of binary in digital systems, such as computer processing and networking.

πŸ’‘Powers of Ten

Powers of ten refer to the exponents used to express place values in the decimal system. In the video, place values like 10^0, 10^1, and 10^2 represent ones, tens, and hundreds, respectively. Understanding this concept is essential for grasping how numbers in base-10 are structured and how they differ from other systems, such as binary.

πŸ’‘Powers of Two

Powers of two are critical in the binary system, where each place value represents increasing powers of 2 (e.g., 2^0, 2^1, 2^2). The video illustrates this when converting decimal to binary and vice versa. For instance, the binary number 10101000 represents 128, 32, and 8, which are powers of 2 added together to make 168.

πŸ’‘Bit

A bit is the most basic unit of data in computing and represents a binary value, either 0 or 1. In the video, bits are used to form binary numbers, with 8 bits grouped together to form a byte. The video explains how 8 bits can represent a range of numbers, and how binary numbers are processed by computers.

πŸ’‘Byte

A byte consists of 8 bits and is a common data size used in computing. The video discusses how a byte is used to represent numbers in binary and how important this is for computer systems. For example, when converting the number 168 to binary, it is represented by 8 bits, forming a complete byte.

πŸ’‘Binary to Decimal Conversion

Binary to decimal conversion is the process of translating a binary number into its decimal equivalent. In the video, this is demonstrated with the binary number 01101101, which is converted into the decimal number 109 by adding up the corresponding place values (64 + 32 + 8 + 4 + 1).

πŸ’‘Decimal to Binary Conversion

Decimal to binary conversion is the reverse process of turning a decimal number into its binary form. The video shows how to convert the decimal number 168 to binary by identifying which powers of two (128, 32, and 8) add up to 168, resulting in the binary number 10101000.

πŸ’‘IP Address

An IP address is a numerical label assigned to devices on a network, often represented in decimal format. In the video, a 32-bit IP address is shown as a binary number, and each octet (group of 8 bits) is converted to its decimal form to explain how computers use binary numbers to manage network addresses, like 192.168.1.101.

Highlights

Introduction to binary to decimal conversion and overview of positional notation in base 10.

Explanation of place values in the decimal system: ones, tens, hundreds, thousands, etc.

Demonstration of breaking down the number 2168 by place values, showing how it's composed of 2000, 100, 60, and 8.

Clarification that the decimal system is a base 10 system using powers of 10, with digits from 0 to 9.

Comparison between decimal (base 10) and binary (base 2) number systems.

Binary system explained: only two possible values (0 and 1) and place values as powers of 2 (1, 2, 4, 8, 16, 32, etc.).

Illustration of converting the decimal number 168 into binary by assigning 1 or 0 to binary place values.

Step-by-step process of converting 168 to binary: placing 1s and 0s in the appropriate positions (128, 32, and 8).

Explanation of how 168 in decimal equals 10101000 in binary.

Introduction to converting binary numbers back to decimal using place values.

Demonstration of converting the binary number 01101101 to decimal by adding up place values (64, 32, 8, 4, 1).

Conversion result: the binary number 01101101 equals 109 in decimal.

Introduction to IP addresses in binary and how to convert them to decimal.

Breakdown of a 32-bit IP address into four octets for conversion.

Example conversion of binary IP address 11000000.10101000.00000001.01100101 to decimal 192.168.1.101.

Transcripts

play00:00

this video i'm going to discuss binary

play00:01

to decimal conversion but before i do

play00:04

this i want to take a look at positional

play00:06

notation or place values i have the

play00:09

number

play00:11

2168 here

play00:13

if we look at the place values of the

play00:15

number 2168

play00:17

we can see that the place values have

play00:20

the ones place

play00:21

the tens place the hundreds place the

play00:23

thousands place ten thousand hundred

play00:25

thousand and million these are the place

play00:28

values of the base 10 decimal number

play00:31

system

play00:32

you can see that we have the number two

play00:33

in the one thousands place so we have

play00:35

two one thousands we have a one in the

play00:37

hundreds place for one hundred we have

play00:40

six in the tens place for sixty and we

play00:43

have eight in the ones place for eight

play00:45

so effectively we have two one thousands

play00:48

one one hundred

play00:50

six tens for sixty

play00:52

and eight ones for eight

play00:54

now when we're talking about the place

play00:56

values in the decimal number system

play00:59

we're talking about the powers of ten

play01:01

you can see that the ones place is the

play01:03

ten to the zero

play01:04

the tens place ten to the one the

play01:07

hundreds place ten to the two or ten

play01:09

times ten which is a hundred the

play01:12

thousands place is the ten to the three

play01:14

or ten times ten times ten

play01:16

and so on and so forth so you can see

play01:19

that the place values

play01:21

are based on powers of ten if we look at

play01:24

the number 2106

play01:26

then in long form we can see that

play01:29

effectively we have two one thousands

play01:33

one one hundred

play01:35

six tens

play01:36

and eight ones and two thousand plus one

play01:39

hundred plus sixty plus eight

play01:41

totals two thousand one hundred and

play01:42

sixty eight

play01:44

this is the type of counting and

play01:46

addition that we learn as children

play01:49

the decimal system

play01:51

is base ten

play01:53

it's based on the fact that you have one

play01:56

powers of ten

play01:57

but more importantly you have ten

play02:00

characters or ten numerals in this

play02:02

counting system from zero all the way up

play02:05

to nine so that means that in each place

play02:08

value you can have anywhere from the

play02:10

number zero up to the number nine in

play02:13

other words if i had the number

play02:16

9168 i'd simply replace the two here

play02:19

with a nine and now i have

play02:22

nine

play02:24

one thousands totaling nine thousand

play02:28

in the one thousands place

play02:30

so in any one of these place values you

play02:32

can have the number zero all the way up

play02:35

to 9. this is the base 10 decimal number

play02:38

system

play02:40

if we consider binary and look at it in

play02:42

the same light as decimal

play02:44

binary is a base 2 number system there's

play02:46

only two characters or two numbers zero

play02:50

and one

play02:51

so under the place values

play02:53

we can only have zeros or ones

play02:55

the place values go from one which is

play02:58

two to the zero

play03:00

to two two to the one four two to the

play03:03

two eight two to the three or two times

play03:06

two times two is eight

play03:08

two times two times two times two is

play03:10

sixteen that's two to the fourth power

play03:12

place value of sixteen

play03:14

the thirty-two's place the sixty-fours

play03:17

place and the one twenty eighths place

play03:19

notice that i extended the table to

play03:22

eight place values that's because eight

play03:26

bits is an important grouping of numbers

play03:28

eight bits makes a byte in computer

play03:30

processing so now i have the place

play03:33

values

play03:34

for essentially 8 bits

play03:36

if i want to write the number

play03:39

168 in binary i just have to find the

play03:42

corresponding place values and plug in

play03:45

either a one or a zero

play03:47

so i'll go to the hundred and twenty

play03:48

eighths place and ask myself do i need

play03:50

128 to reach 168 yes i do so i'll put a

play03:54

one there

play03:56

now do i need a 64. i already have a 128

play03:59

if i add 64

play04:01

i would get 192 because 128 plus 64 is

play04:04

192. so the answer is no so i put a zero

play04:09

i still have 128 now now do i need a 32

play04:13

128 plus 32 is 160 so yes

play04:17

i could use a 1 here

play04:19

now i have 160

play04:22

do i need a 16 no that would make 176

play04:25

which would go over my target number of

play04:28

168.

play04:29

i'll put a zero here

play04:32

what about an eight if i add an eight

play04:35

i'll hit the number perfectly 128 plus

play04:38

32 plus eight is 168. i'll follow this

play04:42

up with zeros in the fourth place

play04:45

the two's place

play04:47

and the ones place

play04:50

and 168 in binary equals one zero one

play04:55

zero one zero zero zero

play04:58

i now have

play04:59

one one hundred and twenty eight

play05:02

i have one thirty two

play05:04

and i have one eight and a hundred and

play05:06

twenty eight plus thirty two plus eight

play05:08

equals a hundred 168.

play05:11

if we go to the next slide

play05:13

you can see now that i'm now charged

play05:15

with converting the number 0 1 1 0

play05:19

1 1 0 1

play05:21

to decimal

play05:22

if i want to go the opposite way and

play05:24

convert this binary number to decimal

play05:26

all i need to do is plug it into the

play05:28

place values

play05:30

i'll put it in here 0

play05:34

1

play05:35

1

play05:36

0.

play05:38

1 1

play05:40

0

play05:41

1

play05:42

and then add it up

play05:44

i have a 64

play05:46

and i have a 32

play05:48

64 plus 32 is

play05:50

96. i have an eight that makes a hundred

play05:54

and four

play05:55

plus four makes a hundred and eight

play05:59

plus one makes a hundred and nine

play06:01

this number converted to decimal is the

play06:04

number one hundred and nine

play06:08

now let's look at a full ip address in

play06:11

binary

play06:12

i'll go to my next slide

play06:15

and you can see in this next slide i now

play06:17

have

play06:18

a 32-bit ip address

play06:21

4 octets

play06:23

or 32 bits total

play06:25

if i want to convert this binary ip

play06:29

address to decimal all i need to do is

play06:32

count up each individual octet

play06:35

let's start with the first one

play06:37

right here

play06:38

we can see that one

play06:40

one

play06:43

zero

play06:44

zero zero zero zero 0

play06:48

128 plus 64 is

play06:52

192.

play06:54

now the next octet has 1 0 1 0 1 let's

play06:59

do that one

play07:02

zero

play07:03

one

play07:06

zero one and then all zeros

play07:09

if we count up the numbers

play07:11

128

play07:13

plus 32 is 160 plus eight is one sixty

play07:17

eight

play07:20

the next octet is all zeros

play07:23

with a one in the last place in the ones

play07:26

place

play07:28

this is easy this is the number

play07:31

one

play07:34

all zeros and a one in the ones place

play07:36

makes the number one

play07:39

and then finally we have a number here

play07:41

i'll plug it in here into my table

play07:47

[Music]

play07:50

and i have the number zero one one zero

play07:54

zero

play07:55

one zero one

play07:57

we can see that 64 plus 32 we've already

play08:00

said

play08:00

is 96

play08:02

plus four

play08:04

is a hundred plus one

play08:07

is one hundred and one

play08:10

so the conversion of this binary ip

play08:12

address to decimal is 192.168.1.101

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Binary ConversionDecimal SystemPlace ValuesIP AddressBase 10Base 2Computer ScienceNumeral SystemsBitwise OperationsBinary Basics