2. সংখ্যা পদ্ধতি
• সংখ্যা পদ্ধত িঃ কন সংখ্যা লেখ্া বা প্রকাশ করার
পদ্ধত লক সংখ্যা পদ্ধত বলে।
• পৃতিবীল তবতিন্ন ধরলনর সংখ্যা পদ্ধত চােু রলেলে।
সংখ্যা পদ্ধত লক দুই িালে িাে করা হে-
• ১) পতসশনাে ২)নন পতসশনাে
• ব ত মালন পতসশনাে পতদ্ধত সকে জােোে বযবহার
হে।সংখ্যা পদ্ধত র লবস তহলসলব আমরা চার
ধরলনর পদ্ধত বযাবহার কলর িাতক।
3. Arnab (cse department NSU)
• সংখ্যা পদ্ধত র লবস হে ঐ পদ্ধত ল বযাবহার করা
প্রত টি লমৌতেক তচহ্ন সমুলহর লমাট সংখ্যা ।আমরা
চার ধরলনর সংখ্যা পদ্ধত বযাবহার কলর িাতক,
াহলো ---
• ১)দশতমক ( ০ লিলক ৯ পর্তন্ত ) =১০টি সংখ্যা
• ২)অক্টাে (০ লিলক ৭ পর্তন্ত) = ৮ টি সংখ্যা
• ৩)লহক্সা লেতসলমে (০ লিলক ৯ পর্তন্ত ারপর
A,B,C,D,E,F) = ১৬ টি সংখ্যা
• ৪)তবনাতর ( ০ এবং ১ ) = ২ টি সংখ্যা
28. Arnab (cse department NSU)
• Decimal to Hexadecimal Conversion
• 5789 ÷ 16 = 361 r 13 or D LSB
• 361 ÷ 16 = 22 r 9 or 9
• 22 ÷ 16 = 1 r 6 or 6
• 1 ÷ 16 = 0 r 1 or 1
• MSB 5789 in decimal = 169D in hexadecimal.
46. Exercise – Convert ...
Don’t use a calculator!
Decimal Binary Octal
Hexa-
decimal
33
1110101
703
1AF
Answer
47. Arnab (cse department NSU)
ঋণাত্মক না ধনাত্মক তচহ্ন র্ুক্ত বা সাইন র্ুক্ত
সংখ্যা লক তচহ্নর্ুক্ত সংখ্যা বা সাইনে নম্বর
বলে।
লরতজস ার র্তদ ৮ তবট বা ১ বাইট হে াহলে
সাইন তবট এর জনয ১ তবট এবং বাতক ৭ তবট
মালনর জনয বযাবহার করা র্ালব। লর্মনিঃ
সবতচ্চ ধনাত্মক সংখ্যা = +১২৭ এর বাইনাতরিঃ
সবতচ্চ ঋণাত্মক সংখ্যা =-১২৮ এর বাইনাতরিঃ
০ ১ ১ ১ ১ ১ ১ ১
১ ০ ০ ০ ০ ০ ০ ০
48. Arnab (cse department NSU)
• ২ এর পতরপূরক েঠন এর তনেম ঃিঃ
• ১)র্তদ লকান সংখ্যার আলে ঋণাত্মক তচহ্ন িালক
াহলে প্রিলম ১ এর পতরপূরক করল লবর করল
হলব। ১ এর পতরপূরক লবর করার জনয লকান সংখ্যা
লক বাইনাতর ল রুপান্তর কলর ালক উেল তদল
হলব অিতাৎ এবং
।
• ২)এিালব ১ এর পতরপূরক েঠন এর পর ঐ উত্তর
এর সালি এক(১) লর্াে (+) করল হে। লর্মনিঃ
• -5 এর পতরপূরক
০ ১ ১ ০
00000101
11111010
+1
11111011
2’s
Complement
Process
51. NEG + NEG → NEG Answer
51
Take the 2’s complement of both negative numbers and use
regular binary addition.
11110111(-9)
+ (-5)
-14
11111011 +
2’s Complement
Numbers, See
Conversion Process
In Previous Slides
1]11110010
8th Bit = 1: Answer is Negative
Disregard 9th Bit
11110010
00001101
+1
00001110
To Check:
Perform 2’s
Complement
On Answer
52. POS + NEG → NEG Answer
52
Take the 2’s complement of the negative number and use
regular binary addition.
11110111(-9)
+ 5
-4
00000101+
00001001
11110110
+1
11110111
2’s
Complement
Process
11111100
8th Bit = 1: Answer is Negative
11111100
00000011
+1
00000100
To Check:
Perform 2’s
Complement
On Answer
53. POS + NEG → POS Answer
53
Take the 2’s complement of the negative number and use
regular binary addition.
000010019
+ (-5)
4
11111011+
00000101
11111010
+1
11111011
2’s
Complement
Process
1]00000100
8th Bit = 0: Answer is Positive
Disregard 9th Bit
54. POS + POS → POS Answer
54
If no 2’s complement is needed, use regular binary addition.
000010019
+ 5
14
00001110
00000101 +
56. Thank you all for your
perticipation
For any help call on 01832388300
Editor's Notes
Examples of the 2’s Complement Process.
This slide demonstrates the addition of two negative numbers.
This slide demonstrates the addition of one positive and one negative number. Again, this is is the same a subtracting a positive number from a positive number. In this case the answer happens to be negative.
This example shows the addition of one positive and one negative numbers. Note that this is done in the same way as subtracting a positive number from a positive number. In this case, the answer is positive.