Number Systems and Character String Representation in Computers, Lecture notes of Computer science

The different number systems used in computers, such as decimal, binary, octal, and hexadecimal, and how to convert between them. It also discusses character string representation and the need for computers to handle numerical and textual data. The ASCII and Unicode codes are introduced as examples of character encoding systems. a mix of text and examples of conversions between number systems.

Typology: Lecture notes

2018/2019

Available from 02/10/2023

probalkar
probalkar 🇮🇳

7 documents

1 / 13

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
elassMAtee
Date23/919
Page
DATA REPRESENTATTONN
Diaitalechuiqueshovedouudheirwa intaanaeraa
oreas oltechnaloay
butheareaot automaticdigital
coputes
isloy or
Hhe tnotalole
and most pxdensive
Themost
cOmmom DImofnuaala
er syste iohichcre use ndiedol
dechnal.sAL
Ofe_dicima
aincr octal hexadecinnalnuaa.ec
Susdem
Adecima aualaes susle iscoaasscdotauneralso
Slaals10 1OMaeans deca wnish laaNeSLbalselweeu
LO fo UsinatheseSnbals digtsare
taLmeoEg-297:2x101990
+1x10 297-1912<10+9xio+
7xt+Ixio
+9si04
inory Number Susten
Ln aino nulaer
Susiemthere
creoul we ubels,ie
oaa
So this nlaer
suslenaaslose2. he biaac umaer
4uStem isaposihaina
nuhaber
sustem where eoch hinary
hog itsown Vodue arseiqht exoressed Q6 poweror fwo
(loLOlL
Ixo+
Ox2 x2 Ox2+|32'
412
32+
8+2+.
43
LO1OÝe
onversion
4(12
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Number Systems and Character String Representation in Computers and more Lecture notes Computer science in PDF only on Docsity!

elassMAtee

Date23/

Page

DATA REPRESENTATTONN

Diaitalechuiqueshovedouudheirwa intaanaeraa oreas oltechnaloaybut^ heareaot^ automaticdigitalcoputes isloy orHhe^ t notaloleand^ most pxdensiveThe^ most cOmmom DImofnuaalaer^ syste^ iohichcre use^ n^ diedol

dechnal.sALOfe_dicimaaincr^ octal hexadecinnalnuaa.ec

Susdem

A decima aualaes susle iscoaasscdotauneralso Slaals10 1O^ Maeans^ deca^ wnish laaNeSLbalselweeu LO fo UsinatheseSnbals^ digtsaretaLmeoEg-297:2x +1x10 297-1912<10+9xio+7xt+Ixio+9si

inory Number Susten

Ln aino^ nulaerSusiemtherecreoul^ we^ ubels,ieoaa So this nlaersuslenaaslose2.^ he^ biaac umaer 4uStem isaposihainanuhabersustem^ whe^ re^ eoch^ hinary

hog itsown^ Vodue^ arseiqht exoressed^ Q6^ poweror^ fwo

(loLOlL Ixo+Ox2^ x2^ Ox^2 +^ |32'^412 32+^8 +2^ +. 43

LO1OÝe

onversion 4 (

elassMAtee Date Page

234 217 2 8 (^2 ) (^2 2 )

o001O Ix Ox 2 0x2 tDx 2 412tox

24-S

5x (^2 ) 30 2 060 oo x 2 20 11 21000 20x 2 040o 40 2E (^) d30O (^30 2) Go

Q(379),,C2)

(^2 ) 2189 2 94 (^2 47) O (^2 ) 2 25 22

12+0 (^324) 1o8+

elassMate Date Page

Q (a3)^ (2),

32 10.0.. 43-

100o -8 3

0010 3-2: L00o

inar o Dectmal he lainarnumbersusie isaposifiananumher Susiein where each lainc dicitcasriesa ceriainweqlt o sposhon reloeeo e SBCLeastSiguaihccntd 1 (Loo)2C

(^32) + 4 + A5e(

K2+Ox2]xQ2+) (^) 40xg+X2Ik2tI2'+ S12+Ot 128 +G4 (^) +32*O8+4t2t Co40+o4+G (^) + 750

elasSMALte Date Page

(1ouolo^ o),:(

(^32) &+4++ 025 +0- 45t0.375 (^) A5 (^315)

1x2 (^) Ox 2

1024 + (^) 0+25 + (^) 128+0+ 32 +O+9+4+0+1 +0S+O: 12 8O (^) 1oot (^12) tOG 44o (^) + (^) 19+oCo 145325

Decima to QcdtolConversioa

A deiseliagaer_conlae_conuecdedoactalau usiaECaeepecded divisienas^ isdoue^ Tom^ alecima^ tolbinac^ la thedivisianatar in ecismaloctaliseisltinsdeaclo tu

g2G (^3 2) 42) 4

3722 8 474 O 95

(^27 )

eASSMAte Date Page

diaisocc Oa (^) Linac

2 3

ta-(4G)^ C2)

4

OL

Dectmal to^ Hexa-olecimalConvetsion

Decimalo incrConversianusing Ispeatealdivisionlay SiilcldeciMa o^ ocfe^ conversianUsiu^ cepea ter^ dvisian ukewisedecins ulaexadecimod comuercioacon uedane

USnSae2peie clivisieaay^ 1a

elAsSMAte Date Page

-Ooao

2-aolo

3-oo

o

A (^) 1o (^01) O

1-lo

2 0o D13 (^) o E14 (^) o f

1G2G A

(ADe

(1543)CAa 6l 164717 1s 29 7

elasSMAte Date Page

023 ES121a015 1282300 256 AA

84 1

(G82)-

256

381.06)C2e 7C

3x16lxL6'+XI6+0xLo oKi 7K +116+|+0+O [945023)

Binay (^) Hexa-decimalCanyersian Binaynos.canbe easilyconvectedfa exa-decimalb gfaupinginaraupsot 4 staringt heoinanypaist Lololouoo (^5 7 )

QOOlloLom ou (2 (^) E (^) E (^) D

Hexa-ecima)do binaruConversion

isareloivelysimpleaatterbtonverdahexcdecim na tolainaywhereeach heradecimaldig iscanvectedto its (^4) bitbinaryeivalent 2FA

(loelllloLO)

Q (^6) LD.1Ac)t

A

O00 OLLO^ Lol^ Oco OLO LOO

elassmate Date Page

00010110ioiLliolooo1o1011.o0 BdoDu

olLalOIlliol00oLLoOLL

Chacacter erStringRepresentatior

odditianto^ numericaldata a_computer^ mus^ oe^ ableto^ handle

nunmericalbormcdion camputer shauldrecognis.ecadeshat

reeresextleiterssHealphalaet,punthtionmarhs and cther apecialchara.cesaswelThes.ecodes alangaithumeticalcodes

atecale-as adphg mericcocdes lhesedphanumetic Cedes,all-He

dilleretdharacfersond unctionsound on diteretstandordsand

kegooasd scripis.

àASCljCAericonSlandardCaded Imormationlerclaange) lhenaostwidelyused clohanonericcode is ASCLL code alislsi usedindaostcd micto-conputersndisnyraiintone campstets ASC11codeis1-bitcode soinhas (^2) posslblecode efoups

iscl(ndianStandaídCaded Intormodion alerchaqge) ththeadvert coaputacis.atiancansideralearkhas lbcen ondertakendoacilitotetheuseo lndioolanusgesoncomouters.lhthe doainatiano (^) Englishlanguaaeand Englislhmedium incoaputer systenhe ndianlongucgesdignetanceotusage insudaa 6cenorioitwas (^) importatohane a (^) camman standarddor codin Indiansccips.In1921,bureauot lnoliaaStandacdsadopted 1ScI_whichisan 86i code (^) Capableof (^) coding 25lacharacters. histandardnpplhest scriptslikeCaurvmulhiDevnogri,Gujarai,- LOriyaengali,Assamese,Telug,Kaanada,MalayalanTail Ahoyhanonoproidemypistcan alsoupe adextinan tihe Scriptayheprocess_kuaaanas (^) fanslHeraticn

elassMAtee Date. Page

UTE-

Cottollaid

2slgt