SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
Department of Computer
Science & Application
COMPUTER NUMBER SYSTEM
ANIL KUMAR PRAJAPATI
What is Number System
 A number system is a system representing numbers. It is also called the system
of numeration and it defines a set of values to represent a quantity. These
numbers are used as digits and the most common ones are 0 and 1, that are used
to represent binary numbers. Digits from 0 to 9 are used to represent other types
of number systems.
Types of Number Systems
 There are different types of number systems in which the four main types are:
Binary number system
(Base - 2) like that (110101)2
Octal number system
(Base - 8) like that (826)8
Hexadecimal number system
(Base - 16) like that (27FBE)16
Decimal number system
(Base - 10) like that (102345)10
Binary Number System
 The binary number system uses only two digits: 0 and 1. The numbers in this system have
a base of 2. The binary system is applied internally by almost all latest computers and computer-
based devices because of its direct implementation in electronic circuits using logic gates. Every
digit is referred to as a bit. binary number, the rightmost digit is called least significant bit
(LSB) and leftmost digit is called most significant bit (MSB). The binary number are represent
like (110101)2
1 1 0 0 1 1
MSB LSB
Binary Number System
 Binary number system conversion into decimal And decimal equivalent of this
number is sum of product of each digit with its positional value.
 Binary to Decimal conversation
1100102 = 1×25 + 1×24 + 0×23 + 0×22 + 1×21 + 0×20
= 32+16 + 0 + 0 + 2 + 0
= 5010
Decimal to Binary Conversion
 To convert Decimal to binary numbers, the following steps should be followed:-
 1. Take any decimal number and divide it by “2". After dividing, you will get some results along with the remainder.
 2. If the decimal number chosen by you is even, then the result will be in a whole number and it will give the remainder 0.
 3. If the decimal number chosen by you is odd, then the number will not be divided fully and you will get the remainder “1”.
 4. Continue dividing the number till you get the quotient 0
 5. Now place all the remainders in the series of Least Significant Bit (LSB) at the top and the Most Significant bit (MSB) at
the bottom.
Decimal to Binary Conversion Example
 Let us Convert the Decimal Number 75 into a Binary Number.
Division of Decimal
Number by 2
Quotient Remainder Binary
75/2 37 1 (LSB) 1
37/2 18 1 1
18/2 9 0 0
9/2 4 1 1
4/2 2 0 0
2/2 1 0 0
1/2 0 1 (LSB) 1
Octal Number System
 Octal number system has eight digits – 0, 1, 2, 3, 4, 5, 6 and 7. Octal number
system is also a positional value system with where each digit has its value
expressed in powers of 8, For example: 458, 538, 2418 are some examples of
numbers in the octal number system. as shown here − (Octal to Decimal)
3268 = 3×82 + 2×81 + 6×80
= 192 + 16 + 6
= 21410
Decimal to Octal Conversion
Division Remainder (R)
210 / 8 = 26 2
26 / 8 = 3 2
3 / 8 = 0 3
1. Take the decimal number as dividend.
2. Divide the number by 8 (as 8 is the base of octal so divisor here).
3. Preserve the remainder in an array (and it will be: 0, 1, 2, 3, 4, 5, 6 or 7 because of the divisor 8).
4. Repeat the above two steps until the amount is bigger than zero.
5. Print the mentioned array in the reverse order.
Let us Convert the Decimal Number 210 into a Octal Number. (Therefore, 21010 = 32216)
Hexadecimal Number System
 The hexadecimal number system uses sixteen digits/alphabets: 0,1,2,3,4,5,6,7,8,9 and
A,B,C,D,E,F with the base number as 16. Here, A-F of the hexadecimal system means
the numbers 10-15 of the decimal number system respectively. This system is used in
computers to reduce the large-sized strings of the binary system. For example: 7A316,
6E16, 4C2A16 are some examples of numbers in the hexadecimal number system.
(Hexadecimal to Decimal )
17FB16 = 1×163 + 7×162 + 15×161 + 10×160
= 4096 + 1792 + 240 +10
= 613810
Decimal to Hexadecimal Conversion
Divide by 16 Quotient Remainder Hex Value
600/ 16 37 8 8
37/ 16 2 5 5
2/ 16 0 2 2
1. Take the decimal number as dividend.
2. Divide the number by 16 (as 16 is the base of octal so divisor here).
3. Preserve the remainder in an array
(and it will be: 0, 1, 2, 3, 4, 5, 6 , 7, 8, 9, A, B, C, D, E, F because of the divisor 16).
1. Repeat the above two steps until the amount is bigger than zero.
2. Print the mentioned array in the reverse order.
Let us Convert the Decimal Number 210 into a Octal Number. (Therefore, 60010 = 25816)
Decimal Number System
 Decimal number system is a base 10 number system having 10 digits from 0 to 9. This means
that any numerical quantity can be represented using these 10 digits. Decimal number system is
also a positional value system. This means that the value of digits will depend on its position.
Let us take an example to understand this.
123410 = 1×103 + 2×102 + 3×101 + 4×100
= 1000 + 200 + 30 + 4
= 123410
Regards:
Anil Kumar Prajapati

Mais conteúdo relacionado

Semelhante a numbersystem-211022083557.pdf

DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxMamataAnilgod
 
Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Jumaed
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16John Todora
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversionsSusantha Herath
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptxHamnaKhalid25
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number Systemkclove
 
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptxLEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptxAhsan433
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawabAmmar_n
 
Grade5(Test 2).pptx
Grade5(Test 2).pptxGrade5(Test 2).pptx
Grade5(Test 2).pptxMjMj96
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1Deepak John
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptxLibanMohamed26
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptxODAATUBE1
 

Semelhante a numbersystem-211022083557.pdf (20)

Number system
Number systemNumber system
Number system
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
Number systems
Number systemsNumber systems
Number systems
 
Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptx
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number System
 
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptxLEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
LEfddfffhhfrrdvvggfdwfcxsfvdsfgC 02 A.pptx
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Ch 4
Ch 4Ch 4
Ch 4
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
Grade5(Test 2).pptx
Grade5(Test 2).pptxGrade5(Test 2).pptx
Grade5(Test 2).pptx
 
Number System and Boolean Algebra
Number System and Boolean AlgebraNumber System and Boolean Algebra
Number System and Boolean Algebra
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 
Number system
Number systemNumber system
Number system
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 

Mais de AsthaChaurasia4

Mais de AsthaChaurasia4 (9)

SENSORS.pptx
SENSORS.pptxSENSORS.pptx
SENSORS.pptx
 
introductionpart1-160906115340 (1).pptx
introductionpart1-160906115340 (1).pptxintroductionpart1-160906115340 (1).pptx
introductionpart1-160906115340 (1).pptx
 
datastructureppt-190327174340 (1).pptx
datastructureppt-190327174340 (1).pptxdatastructureppt-190327174340 (1).pptx
datastructureppt-190327174340 (1).pptx
 
PROFICIENCY PRESENTATION.pptx
PROFICIENCY PRESENTATION.pptxPROFICIENCY PRESENTATION.pptx
PROFICIENCY PRESENTATION.pptx
 
beeeppt.pptx
beeeppt.pptxbeeeppt.pptx
beeeppt.pptx
 
lecture02-numbersystem-191002152647.pdf
lecture02-numbersystem-191002152647.pdflecture02-numbersystem-191002152647.pdf
lecture02-numbersystem-191002152647.pdf
 
BEEEE PROJECT.pptx
BEEEE PROJECT.pptxBEEEE PROJECT.pptx
BEEEE PROJECT.pptx
 
AIML.pptx
AIML.pptxAIML.pptx
AIML.pptx
 
beee.pptx
beee.pptxbeee.pptx
beee.pptx
 

Último

Sample IT RISK REGISTER for Education Purpose
Sample IT RISK REGISTER for Education PurposeSample IT RISK REGISTER for Education Purpose
Sample IT RISK REGISTER for Education PurposeCyberGuru5
 
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdfDMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdfReemaKhan31
 
怎样办理哥伦比亚大学毕业证(Columbia毕业证书)成绩单学校原版复制
怎样办理哥伦比亚大学毕业证(Columbia毕业证书)成绩单学校原版复制怎样办理哥伦比亚大学毕业证(Columbia毕业证书)成绩单学校原版复制
怎样办理哥伦比亚大学毕业证(Columbia毕业证书)成绩单学校原版复制yynod
 
Top profile Call Girls In Agartala [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Agartala [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Agartala [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Agartala [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
K Venkat Naveen Kumar | GCP Data Engineer | CV
K Venkat Naveen Kumar | GCP Data Engineer | CVK Venkat Naveen Kumar | GCP Data Engineer | CV
K Venkat Naveen Kumar | GCP Data Engineer | CVK VENKAT NAVEEN KUMAR
 
Top profile Call Girls In Varanasi [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Varanasi [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Varanasi [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Varanasi [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...Juli Boned
 
怎样办理宾夕法尼亚大学毕业证(UPenn毕业证书)成绩单学校原版复制
怎样办理宾夕法尼亚大学毕业证(UPenn毕业证书)成绩单学校原版复制怎样办理宾夕法尼亚大学毕业证(UPenn毕业证书)成绩单学校原版复制
怎样办理宾夕法尼亚大学毕业证(UPenn毕业证书)成绩单学校原版复制yynod
 
drug book file on obs. and gynae clinical pstings
drug book file on obs. and gynae clinical pstingsdrug book file on obs. and gynae clinical pstings
drug book file on obs. and gynae clinical pstingsKarishma7720
 
<DUBAI>Abortion pills IN UAE {{+971561686603*^Mifepristone & Misoprostol in D...
<DUBAI>Abortion pills IN UAE {{+971561686603*^Mifepristone & Misoprostol in D...<DUBAI>Abortion pills IN UAE {{+971561686603*^Mifepristone & Misoprostol in D...
<DUBAI>Abortion pills IN UAE {{+971561686603*^Mifepristone & Misoprostol in D...gynedubai
 
Joshua Minker Brand Exploration Sports Broadcaster .pptx
Joshua Minker Brand Exploration Sports Broadcaster .pptxJoshua Minker Brand Exploration Sports Broadcaster .pptx
Joshua Minker Brand Exploration Sports Broadcaster .pptxsportsworldproductio
 
Top profile Call Girls In Jabalpur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Jabalpur [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Jabalpur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Jabalpur [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
Top profile Call Girls In bhubaneswar [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In bhubaneswar [ 7014168258 ] Call Me For Genuine Mode...Top profile Call Girls In bhubaneswar [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In bhubaneswar [ 7014168258 ] Call Me For Genuine Mode...gajnagarg
 
Personal Brand Exploration ppt.- Ronnie Jones
Personal Brand  Exploration ppt.- Ronnie JonesPersonal Brand  Exploration ppt.- Ronnie Jones
Personal Brand Exploration ppt.- Ronnie Jonesjonesyde302
 
Top profile Call Girls In chittoor [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In chittoor [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In chittoor [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In chittoor [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
怎样办理伊利诺伊大学厄巴纳-香槟分校毕业证(UIUC毕业证书)成绩单学校原版复制
怎样办理伊利诺伊大学厄巴纳-香槟分校毕业证(UIUC毕业证书)成绩单学校原版复制怎样办理伊利诺伊大学厄巴纳-香槟分校毕业证(UIUC毕业证书)成绩单学校原版复制
怎样办理伊利诺伊大学厄巴纳-香槟分校毕业证(UIUC毕业证书)成绩单学校原版复制yynod
 
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...ZurliaSoop
 
Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.GabrielaMiletti
 
Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........deejay178
 
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdfUXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdfDan Berlin
 

Último (20)

Sample IT RISK REGISTER for Education Purpose
Sample IT RISK REGISTER for Education PurposeSample IT RISK REGISTER for Education Purpose
Sample IT RISK REGISTER for Education Purpose
 
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdfDMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
 
怎样办理哥伦比亚大学毕业证(Columbia毕业证书)成绩单学校原版复制
怎样办理哥伦比亚大学毕业证(Columbia毕业证书)成绩单学校原版复制怎样办理哥伦比亚大学毕业证(Columbia毕业证书)成绩单学校原版复制
怎样办理哥伦比亚大学毕业证(Columbia毕业证书)成绩单学校原版复制
 
Top profile Call Girls In Agartala [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Agartala [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Agartala [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Agartala [ 7014168258 ] Call Me For Genuine Models ...
 
K Venkat Naveen Kumar | GCP Data Engineer | CV
K Venkat Naveen Kumar | GCP Data Engineer | CVK Venkat Naveen Kumar | GCP Data Engineer | CV
K Venkat Naveen Kumar | GCP Data Engineer | CV
 
Top profile Call Girls In Varanasi [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Varanasi [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Varanasi [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Varanasi [ 7014168258 ] Call Me For Genuine Models ...
 
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
 
怎样办理宾夕法尼亚大学毕业证(UPenn毕业证书)成绩单学校原版复制
怎样办理宾夕法尼亚大学毕业证(UPenn毕业证书)成绩单学校原版复制怎样办理宾夕法尼亚大学毕业证(UPenn毕业证书)成绩单学校原版复制
怎样办理宾夕法尼亚大学毕业证(UPenn毕业证书)成绩单学校原版复制
 
drug book file on obs. and gynae clinical pstings
drug book file on obs. and gynae clinical pstingsdrug book file on obs. and gynae clinical pstings
drug book file on obs. and gynae clinical pstings
 
<DUBAI>Abortion pills IN UAE {{+971561686603*^Mifepristone & Misoprostol in D...
<DUBAI>Abortion pills IN UAE {{+971561686603*^Mifepristone & Misoprostol in D...<DUBAI>Abortion pills IN UAE {{+971561686603*^Mifepristone & Misoprostol in D...
<DUBAI>Abortion pills IN UAE {{+971561686603*^Mifepristone & Misoprostol in D...
 
Joshua Minker Brand Exploration Sports Broadcaster .pptx
Joshua Minker Brand Exploration Sports Broadcaster .pptxJoshua Minker Brand Exploration Sports Broadcaster .pptx
Joshua Minker Brand Exploration Sports Broadcaster .pptx
 
Top profile Call Girls In Jabalpur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Jabalpur [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Jabalpur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Jabalpur [ 7014168258 ] Call Me For Genuine Models ...
 
Top profile Call Girls In bhubaneswar [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In bhubaneswar [ 7014168258 ] Call Me For Genuine Mode...Top profile Call Girls In bhubaneswar [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In bhubaneswar [ 7014168258 ] Call Me For Genuine Mode...
 
Personal Brand Exploration ppt.- Ronnie Jones
Personal Brand  Exploration ppt.- Ronnie JonesPersonal Brand  Exploration ppt.- Ronnie Jones
Personal Brand Exploration ppt.- Ronnie Jones
 
Top profile Call Girls In chittoor [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In chittoor [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In chittoor [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In chittoor [ 7014168258 ] Call Me For Genuine Models ...
 
怎样办理伊利诺伊大学厄巴纳-香槟分校毕业证(UIUC毕业证书)成绩单学校原版复制
怎样办理伊利诺伊大学厄巴纳-香槟分校毕业证(UIUC毕业证书)成绩单学校原版复制怎样办理伊利诺伊大学厄巴纳-香槟分校毕业证(UIUC毕业证书)成绩单学校原版复制
怎样办理伊利诺伊大学厄巴纳-香槟分校毕业证(UIUC毕业证书)成绩单学校原版复制
 
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
 
Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.
 
Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........
 
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdfUXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
 

numbersystem-211022083557.pdf

  • 1. Department of Computer Science & Application COMPUTER NUMBER SYSTEM ANIL KUMAR PRAJAPATI
  • 2. What is Number System  A number system is a system representing numbers. It is also called the system of numeration and it defines a set of values to represent a quantity. These numbers are used as digits and the most common ones are 0 and 1, that are used to represent binary numbers. Digits from 0 to 9 are used to represent other types of number systems.
  • 3. Types of Number Systems  There are different types of number systems in which the four main types are: Binary number system (Base - 2) like that (110101)2 Octal number system (Base - 8) like that (826)8 Hexadecimal number system (Base - 16) like that (27FBE)16 Decimal number system (Base - 10) like that (102345)10
  • 4. Binary Number System  The binary number system uses only two digits: 0 and 1. The numbers in this system have a base of 2. The binary system is applied internally by almost all latest computers and computer- based devices because of its direct implementation in electronic circuits using logic gates. Every digit is referred to as a bit. binary number, the rightmost digit is called least significant bit (LSB) and leftmost digit is called most significant bit (MSB). The binary number are represent like (110101)2 1 1 0 0 1 1 MSB LSB
  • 5. Binary Number System  Binary number system conversion into decimal And decimal equivalent of this number is sum of product of each digit with its positional value.  Binary to Decimal conversation 1100102 = 1×25 + 1×24 + 0×23 + 0×22 + 1×21 + 0×20 = 32+16 + 0 + 0 + 2 + 0 = 5010
  • 6. Decimal to Binary Conversion  To convert Decimal to binary numbers, the following steps should be followed:-  1. Take any decimal number and divide it by “2". After dividing, you will get some results along with the remainder.  2. If the decimal number chosen by you is even, then the result will be in a whole number and it will give the remainder 0.  3. If the decimal number chosen by you is odd, then the number will not be divided fully and you will get the remainder “1”.  4. Continue dividing the number till you get the quotient 0  5. Now place all the remainders in the series of Least Significant Bit (LSB) at the top and the Most Significant bit (MSB) at the bottom.
  • 7. Decimal to Binary Conversion Example  Let us Convert the Decimal Number 75 into a Binary Number. Division of Decimal Number by 2 Quotient Remainder Binary 75/2 37 1 (LSB) 1 37/2 18 1 1 18/2 9 0 0 9/2 4 1 1 4/2 2 0 0 2/2 1 0 0 1/2 0 1 (LSB) 1
  • 8. Octal Number System  Octal number system has eight digits – 0, 1, 2, 3, 4, 5, 6 and 7. Octal number system is also a positional value system with where each digit has its value expressed in powers of 8, For example: 458, 538, 2418 are some examples of numbers in the octal number system. as shown here − (Octal to Decimal) 3268 = 3×82 + 2×81 + 6×80 = 192 + 16 + 6 = 21410
  • 9. Decimal to Octal Conversion Division Remainder (R) 210 / 8 = 26 2 26 / 8 = 3 2 3 / 8 = 0 3 1. Take the decimal number as dividend. 2. Divide the number by 8 (as 8 is the base of octal so divisor here). 3. Preserve the remainder in an array (and it will be: 0, 1, 2, 3, 4, 5, 6 or 7 because of the divisor 8). 4. Repeat the above two steps until the amount is bigger than zero. 5. Print the mentioned array in the reverse order. Let us Convert the Decimal Number 210 into a Octal Number. (Therefore, 21010 = 32216)
  • 10. Hexadecimal Number System  The hexadecimal number system uses sixteen digits/alphabets: 0,1,2,3,4,5,6,7,8,9 and A,B,C,D,E,F with the base number as 16. Here, A-F of the hexadecimal system means the numbers 10-15 of the decimal number system respectively. This system is used in computers to reduce the large-sized strings of the binary system. For example: 7A316, 6E16, 4C2A16 are some examples of numbers in the hexadecimal number system. (Hexadecimal to Decimal ) 17FB16 = 1×163 + 7×162 + 15×161 + 10×160 = 4096 + 1792 + 240 +10 = 613810
  • 11. Decimal to Hexadecimal Conversion Divide by 16 Quotient Remainder Hex Value 600/ 16 37 8 8 37/ 16 2 5 5 2/ 16 0 2 2 1. Take the decimal number as dividend. 2. Divide the number by 16 (as 16 is the base of octal so divisor here). 3. Preserve the remainder in an array (and it will be: 0, 1, 2, 3, 4, 5, 6 , 7, 8, 9, A, B, C, D, E, F because of the divisor 16). 1. Repeat the above two steps until the amount is bigger than zero. 2. Print the mentioned array in the reverse order. Let us Convert the Decimal Number 210 into a Octal Number. (Therefore, 60010 = 25816)
  • 12. Decimal Number System  Decimal number system is a base 10 number system having 10 digits from 0 to 9. This means that any numerical quantity can be represented using these 10 digits. Decimal number system is also a positional value system. This means that the value of digits will depend on its position. Let us take an example to understand this. 123410 = 1×103 + 2×102 + 3×101 + 4×100 = 1000 + 200 + 30 + 4 = 123410