Number Systems and Signed Numbers: Binary, Octal, Hex and 2’s Complement – Grade 12 A/L ICT Notes 3.1

© 2026 schoolict.net (Ruwan Mangala Suraweera)

3.1 Number Systems and Signed Numbers: Binary, Octal, Hex and 2’s Complementසංඛ්‍යා පද්ධති සහ ලකුණු සහිත සංඛ්‍යා: ද්වීමය, අෂ්ටමය, ෂඩ්දශමය සහ 2 හි අනුපූරකය

Grade 12 A/L ICT · Lesson 312 ශ්‍රේණිය A/L ICT · පාඩම 3

Prints all tabs in the language you are reading. Use “Save as PDF” in the print window to keep a copy.ඔබ කියවන භාෂාවෙන් සියලු tabs මුද්‍රණය වේ. පිටපතක් තියාගන්න print window එකේ “Save as PDF” තෝරන්න.
🎬Video coming soon in this language. Switch language to watch the other video.මේ භාෂාවෙන් වීඩියෝව ඉක්මනින් එනවා. අනෙක් වීඩියෝව බලන්න භාෂාව මාරු කරන්න.

In this videoමේ වීඩියෝවේ

  • Computers use two states (0 and 1) because they are easy, reliable and match logic.පහසු, විශ්වාසදායක සහ තර්කයට ගැළපෙන නිසා පරිගණක අවස්ථා දෙකක් (0 සහ 1) භාවිත කරයි.
  • Bases: decimal 10, binary 2, octal 8, hexadecimal 16 (A–F = 10–15).පාද: දශමය 10, ද්වීමය 2, අෂ්ටමය 8, ෂඩ්දශමය 16 (A–F = 10–15).
  • Decimal → base: divide and read remainders bottom to top. Base → decimal: multiply by place values and add.දශමය → පාදය: බෙදා ශේෂ පහළ සිට ඉහළට කියවන්න. පාදය → දශමය: ස්ථානීය අගයෙන් ගුණ කර එකතු කරන්න.
  • Binary ↔ octal: groups of 3 bits; binary ↔ hex: groups of 4 bits, from the right.ද්වීමය ↔ අෂ්ටමය: බිටු 3 කාණ්ඩ; ද්වීමය ↔ ෂඩ්දශමය: බිටු 4 කාණ්ඩ, දකුණේ සිට.
  • Signed numbers use the MSB as the sign bit: sign-magnitude, 1’s complement (flip), 2’s complement (flip + 1).ලකුණු සහිත සංඛ්‍යා MSB ලකුණු බිටුව ලෙස යොදයි: ලකුණු-විශාලත්වය, 1 හි අනුපූරකය (පෙරළීම), 2 හි අනුපූරකය (පෙරළීම + 1).
BitByteNibbleBase (radix)BinaryOctalHexadecimal

Notesසටහන්

Syllabus 3.1. A computer stores everything as 0s and 1s. In this part you learn why only two states are used, the four number systems (decimal, binary, octal, hexadecimal), how to convert between them step by step, and how a computer stores negative numbers using sign-magnitude, 1’s complement and 2’s complement, where the most significant bit (MSB) is the sign bit.විෂය නිර්දේශය 3.1. පරිගණකය සියල්ල 0 සහ 1 ලෙස ගබඩා කරයි. මෙම කොටසින් අවස්ථා දෙකක් පමණක් භාවිත කරන්නේ ඇයි, සංඛ්‍යා පද්ධති හතර (දශමය, ද්වීමය, අෂ්ටමය, ෂඩ්දශමය), ඒවා අතර පියවරෙන් පියවර පරිවර්තනය කරන ආකාරය, සහ වැඩිම වෙසෙසි බිටුව (MSB) ලකුණු බිටුව ලෙස යොදා ලකුණු-විශාලත්ව, 1 හි අනුපූරක සහ 2 හි අනුපූරක ක්‍රම මගින් සෘණ සංඛ්‍යා ගබඩා කරන ආකාරය ඉගෙන ගනී.

1. Why computers use two states1. පරිගණක අවස්ථා දෙකක් භාවිත කරන්නේ ඇයි

Inside a computer, every circuit is like a switch: it is either ON or OFF. A wire has high voltage or low voltage, a disk spot is magnetised one way or the other, and a CD spot is a pit or a land. We write these two states as 1 and 0. One 0 or 1 is called a bit (binary digit).පරිගණකය තුළ සෑම පරිපථයක්ම ස්විචයක් වැනිය: එය ON හෝ OFF වේ. කම්බියක ඉහළ වෝල්ටීයතාවක් හෝ අඩු වෝල්ටීයතාවක් ඇත, තැටියක ලක්ෂ්‍යයක් එක් දිශාවකට හෝ අනෙක් දිශාවට චුම්බක වී ඇත, CD එකක ලක්ෂ්‍යයක් වළක් (pit) හෝ තලයක් (land) වේ. මේ අවස්ථා දෙක අපි 1 සහ 0 ලෙස ලියමු. එක් 0 හෝ 1 ක් බිටුවක් (ද්වීමය ඉලක්කම) ලෙස හැඳින්වේ.

  • Two states are easy to make and detect – the circuit only has to tell high from low.අවස්ථා දෙකක් සෑදීමට සහ හඳුනාගැනීමට පහසුයි – පරිපථයට ඉහළ සහ පහළ වෙන්කර හඳුනාගැනීම පමණක් ප්‍රමාණවත්.
  • They are reliable: a small amount of electrical noise does not change a 1 into a 0.ඒවා විශ්වාසදායකයි: සුළු විදුලි ඝෝෂාවක් 1 ක් 0 බවට වෙනස් නොකරයි.
  • They match Boolean logic (true/false), so circuits can do arithmetic and decisions.ඒවා බූලියානු තර්කයට (සත්‍ය/අසත්‍ය) ගැළපේ, එබැවින් පරිපථවලට අංක ගණිතය සහ තීරණ ගත හැක.
  • Groups of bits: 4 bits = nibble, 8 bits = byte. With n bits you get 2ⁿ different patterns.බිටු කාණ්ඩ: බිටු 4 = nibble, බිටු 8 = බයිටය. බිටු n කින් වෙනස් රටා 2ⁿ ක් ලැබේ.
🧮 Worked exampleවිසඳූ උදාහරණය How many different patterns can be made with 8 bits? With 16 bits?බිටු 8 කින් වෙනස් රටා කීයක් සෑදිය හැකිද? බිටු 16 කින්?
8 bits: 2⁸ = 256 patterns (0 to 255). 16 bits: 2¹⁶ = 65,536 patterns.බිටු 8: 2⁸ = රටා 256 (0 සිට 255). බිටු 16: 2¹⁶ = රටා 65,536.

2. The four number systems2. සංඛ්‍යා පද්ධති හතර

Every number system has a base (radix) – the number of different digits it uses. The value of a digit depends on its place: each place is worth base × the place on its right.සෑම සංඛ්‍යා පද්ධතියකටම පාදයක් (radix) ඇත – එය භාවිත කරන වෙනස් ඉලක්කම් ගණන. ඉලක්කමක අගය එහි ස්ථානය මත රඳා පවතී: සෑම ස්ථානයක්ම එහි දකුණු පස ස්ථානය × පාදය අගයක් ගනී.

Systemපද්ධතියBaseපාදයDigitsඉලක්කම්Place valuesස්ථානීය අගයන්Exampleඋදාහරණය
Decimalදශමය10100–90–9… 1000, 100, 10, 1… 1000, 100, 10, 1156₁₀156₁₀
Binaryද්වීමය220, 10, 1… 8, 4, 2, 1… 8, 4, 2, 110011100₂10011100₂
Octalඅෂ්ටමය880–70–7… 512, 64, 8, 1… 512, 64, 8, 1234₈234₈
Hexadecimalෂඩ්දශමය16160–9, A–F (A=10 … F=15)0–9, A–F (A=10 … F=15)… 4096, 256, 16, 1… 4096, 256, 16, 19C₁₆9C₁₆
💡 Write the base as a small number after the value, for example 1010₂, so nobody confuses 10 in binary (two) with 10 in decimal (ten).අගයට පසුව පාදය කුඩා ඉලක්කමක් ලෙස ලියන්න, උදා: 1010₂, එවිට ද්වීමයේ 10 (දෙක) සහ දශමයේ 10 (දහය) කිසිවෙක් පටලවා නොගනී.
DecimalදශමයBinary (4 bits)ද්වීමය (බිටු 4)Octalඅෂ්ටමයHexෂඩ්දශමය
00000000000000
11000100011111
22001000102222
33001100113333
44010001004444
55010101015555
66011001106666
77011101117777
8810001000101088
9910011001111199
1010101010101212AA
1111101110111313BB
1212110011001414CC
1313110111011515DD
1414111011101616EE
1515111111111717FF
💡 Learn this 0–15 table by heart. It is the key to every fast conversion between binary, octal and hex.මෙම 0–15 වගුව කටපාඩම් කරන්න. ද්වීමය, අෂ්ටමය සහ ෂඩ්දශමය අතර ඉක්මන් පරිවර්තන සියල්ලටම යතුර එයයි.
Decimal → binary: ÷2, remainders upදශමය → ද්වීමය: ÷2, ශේෂ ඉහළටBinary → decimal: × place valuesද්වීමය → දශමය: × ස්ථානීය අගයOctal ↔ binary: 1 digit = 3 bitsඅෂ්ටමය ↔ ද්වීමය: ඉලක්කම 1 = බිටු 3Hex ↔ binary: 1 digit = 4 bitsෂඩ්දශමය ↔ ද්වීමය: ඉලක්කම 1 = බිටු 4Binary (base 2)ද්වීමය (පාදය 2)
How to convert between number systemsසංඛ්‍යා පද්ධති අතර පරිවර්තනය කරන ආකාරය

3. Decimal to binary, octal and hex – divide and keep the remainders3. දශමයෙන් ද්වීමය, අෂ්ටමය සහ ෂඩ්දශමය – බෙදා ශේෂ තබා ගන්න

Method: divide the decimal number by the new base again and again. Write down each remainder. Stop when the quotient is 0. Read the remainders from the bottom to the top.ක්‍රමය: දශම සංඛ්‍යාව නව පාදයෙන් නැවත නැවත බෙදන්න. සෑම ශේෂයක්ම ලියා ගන්න. ලබ්ධිය 0 වූ විට නවත්වන්න. ශේෂ පහළ සිට ඉහළට කියවන්න.

🧮 Worked exampleවිසඳූ උදාහරණය Convert 156₁₀ to binary.156₁₀ ද්වීමයට පරිවර්තනය කරන්න.
Divide by 2 (table below). Reading the remainders from bottom to top: 156₁₀ = 10011100₂. Check: 128 + 16 + 8 + 4 = 156.2 න් බෙදන්න (පහත වගුව). ශේෂ පහළ සිට ඉහළට කියවූ විට: 156₁₀ = 10011100₂. පරීක්ෂාව: 128 + 16 + 8 + 4 = 156.
DivisionබෙදීමQuotientලබ්ධියRemainderශේෂය
156 ÷ 2156 ÷ 2787800
78 ÷ 278 ÷ 2393900
39 ÷ 239 ÷ 2191911
19 ÷ 219 ÷ 29911
9 ÷ 29 ÷ 24411
4 ÷ 24 ÷ 22200
2 ÷ 22 ÷ 21100
1 ÷ 21 ÷ 20011
🧮 Worked exampleවිසඳූ උදාහරණය Convert 156₁₀ to octal.156₁₀ අෂ්ටමයට පරිවර්තනය කරන්න.
Divide by 8: 156 ÷ 8 = 19 r 4, 19 ÷ 8 = 2 r 3, 2 ÷ 8 = 0 r 2. Bottom to top: 234₈. Check: 2×64 + 3×8 + 4 = 156.8 න් බෙදන්න: 156 ÷ 8 = 19 ශේෂ 4, 19 ÷ 8 = 2 ශේෂ 3, 2 ÷ 8 = 0 ශේෂ 2. පහළ සිට ඉහළට: 234₈. පරීක්ෂාව: 2×64 + 3×8 + 4 = 156.
DivisionබෙදීමQuotientලබ්ධියRemainderශේෂය
156 ÷ 8156 ÷ 8191944
19 ÷ 819 ÷ 82233
2 ÷ 82 ÷ 80022
🧮 Worked exampleවිසඳූ උදාහරණය Convert 2026₁₀ (this year) to hexadecimal.2026₁₀ (මේ වර්ෂය) ෂඩ්දශමයට පරිවර්තනය කරන්න.
Divide by 16. A remainder of 10 to 15 is written as a letter (14 = E). Bottom to top: 2026₁₀ = 7EA₁₆. Check: 7×256 + 14×16 + 10 = 2026.16 න් බෙදන්න. 10 සිට 15 දක්වා ශේෂයක් අකුරකින් ලියයි (14 = E). පහළ සිට ඉහළට: 2026₁₀ = 7EA₁₆. පරීක්ෂාව: 7×256 + 14×16 + 10 = 2026.
DivisionබෙදීමQuotientලබ්ධියRemainderශේෂය
2026 ÷ 162026 ÷ 1612612610 = A10 = A
126 ÷ 16126 ÷ 167714 = E14 = E
7 ÷ 167 ÷ 160077

4. Binary, octal and hex to decimal – multiply by place values4. ද්වීමය, අෂ්ටමය සහ ෂඩ්දශමයෙන් දශමයට – ස්ථානීය අගයෙන් ගුණ කරන්න

Method: write the place value under each digit (1, base, base², …from the right). Multiply each digit by its place value and add the answers.ක්‍රමය: සෑම ඉලක්කමක් යටම ස්ථානීය අගය ලියන්න (දකුණේ සිට 1, පාදය, පාදය², …). සෑම ඉලක්කමක්ම එහි ස්ථානීය අගයෙන් ගුණ කර පිළිතුරු එකතු කරන්න.

🧮 Worked exampleවිසඳූ උදාහරණය Convert 101101₂ to decimal.101101₂ දශමයට පරිවර්තනය කරන්න.
32 + 0 + 8 + 4 + 0 + 1 = 45₁₀. (Shortcut: just add the place values under the 1s.)32 + 0 + 8 + 4 + 0 + 1 = 45₁₀. (කෙටි ක්‍රමය: 1 ඇති ස්ථානවල ස්ථානීය අගයන් පමණක් එකතු කරන්න.)
Digitඉලක්කම110011110011
Place valueස්ථානීය අගය2⁵ = 322⁵ = 322⁴ = 162⁴ = 162³ = 82³ = 82² = 42² = 42¹ = 22¹ = 22⁰ = 12⁰ = 1
Digit × place valueඉලක්කම × ස්ථානීය අගය1 × 32 = 321 × 32 = 320 × 16 = 00 × 16 = 01 × 8 = 81 × 8 = 81 × 4 = 41 × 4 = 40 × 2 = 00 × 2 = 01 × 1 = 11 × 1 = 1
🧮 Worked exampleවිසඳූ උදාහරණය Convert 347₈ to decimal.347₈ දශමයට පරිවර්තනය කරන්න.
3×64 + 4×8 + 7×1 = 192 + 32 + 7 = 231₁₀.3×64 + 4×8 + 7×1 = 192 + 32 + 7 = 231₁₀.
Digitඉලක්කම334477
Place valueස්ථානීය අගය8² = 648² = 648¹ = 88¹ = 88⁰ = 18⁰ = 1
Digit × place valueඉලක්කම × ස්ථානීය අගය3 × 64 = 1923 × 64 = 1924 × 8 = 324 × 8 = 327 × 1 = 77 × 1 = 7
🧮 Worked exampleවිසඳූ උදාහරණය Convert 2AF₁₆ to decimal.2AF₁₆ දශමයට පරිවර්තනය කරන්න.
A = 10 and F = 15. 2×256 + 10×16 + 15×1 = 512 + 160 + 15 = 687₁₀.A = 10 සහ F = 15. 2×256 + 10×16 + 15×1 = 512 + 160 + 15 = 687₁₀.
Digitඉලක්කම22AAFF
Place valueස්ථානීය අගය16² = 25616² = 25616¹ = 1616¹ = 1616⁰ = 116⁰ = 1
Digit × place valueඉලක්කම × ස්ථානීය අගය2 × 256 = 5122 × 256 = 51210 × 16 = 16010 × 16 = 16015 × 1 = 1515 × 1 = 15

5. Binary ↔ octal and hex – the grouping shortcut5. ද්වීමය ↔ අෂ්ටමය සහ ෂඩ්දශමය – කාණ්ඩ කිරීමේ කෙටි ක්‍රමය

Because 8 = 2³ and 16 = 2⁴, one octal digit = 3 bits and one hex digit = 4 bits. Group the bits from the right, add 0s on the left if needed, and change each group to one digit. To go back, change each digit to 3 or 4 bits.8 = 2³ සහ 16 = 2⁴ නිසා එක් අෂ්ටමය ඉලක්කමක් = බිටු 3 සහ එක් ෂඩ්දශමය ඉලක්කමක් = බිටු 4. බිටු දකුණේ සිට කාණ්ඩ කරන්න, අවශ්‍ය නම් වම් පසට 0 එකතු කරන්න, සහ සෑම කාණ්ඩයක්ම එක් ඉලක්කමකට හරවන්න. ආපසු යාමට සෑම ඉලක්කමක්ම බිටු 3 හෝ 4 කට හරවන්න.

🧮 Worked exampleවිසඳූ උදාහරණය Convert 11010110₂ to octal and to hexadecimal.11010110₂ අෂ්ටමයට සහ ෂඩ්දශමයට පරිවර්තනය කරන්න.
Groups of 3 (pad to 011 010 110): octal 326₈. Groups of 4 (1101 0110): 1101 = D, 0110 = 6, so hex D6₁₆. Both equal 214 in decimal.3 බැගින් කාණ්ඩ (011 010 110 ලෙස පුරවා): අෂ්ටමය 326₈. 4 බැගින් කාණ්ඩ (1101 0110): 1101 = D, 0110 = 6, එබැවින් ෂඩ්දශමය D6₁₆. දෙකම දශමයෙන් 214.
Groupකාණ්ඩය011011010010110110
Valueඅගය332266
Groupකාණ්ඩය1101110101100110
ValueඅගයDD66
🧮 Worked exampleවිසඳූ උදාහරණය Convert 725₈ and 3C9₁₆ to binary.725₈ සහ 3C9₁₆ ද්වීමයට පරිවර්තනය කරන්න.
Octal: each digit → 3 bits: 7 = 111, 2 = 010, 5 = 101, so 111010101₂. Hex: each digit → 4 bits: 3 = 0011, C = 1100, 9 = 1001, so 0011 1100 1001₂ (the leading 00 can be dropped).අෂ්ටමය: සෑම ඉලක්කමක්ම → බිටු 3: 7 = 111, 2 = 010, 5 = 101, එබැවින් 111010101₂. ෂඩ්දශමය: සෑම ඉලක්කමක්ම → බිටු 4: 3 = 0011, C = 1100, 9 = 1001, එබැවින් 0011 1100 1001₂ (මුල් 00 ඉවත් කළ හැක).
Digitඉලක්කම772255
Bitsබිටු111111010010101101
Digitඉලක්කම33CC99
Bitsබිටු001100111100110010011001
🧮 Worked exampleවිසඳූ උදාහරණය Convert 157₈ to hexadecimal, and 2F₁₆ to octal.157₈ ෂඩ්දශමයට ද, 2F₁₆ අෂ්ටමයට ද පරිවර්තනය කරන්න.
Go through binary. 157₈ → 001 101 111 → regroup in 4s: 0110 1111 → 6F₁₆. 2F₁₆ → 0010 1111 → regroup in 3s: 000 101 111 → 57₈.ද්වීමය හරහා යන්න. 157₈ → 001 101 111 → 4 බැගින් නැවත කාණ්ඩ: 0110 1111 → 6F₁₆. 2F₁₆ → 0010 1111 → 3 බැගින් නැවත කාණ්ඩ: 000 101 111 → 57₈.
💡 Never convert octal to hex digit by digit. Always go octal → binary → hex (or hex → binary → octal).අෂ්ටමයෙන් ෂඩ්දශමයට ඉලක්කමෙන් ඉලක්කම පරිවර්තනය නොකරන්න. සැමවිටම අෂ්ටමය → ද්වීමය → ෂඩ්දශමය (හෝ ෂඩ්දශමය → ද්වීමය → අෂ්ටමය) ලෙස යන්න.

6. Unsigned and signed integers6. ලකුණු රහිත සහ ලකුණු සහිත නිඛිල

An unsigned integer uses all its bits for the size, so it can only be 0 or positive. 8 bits give 0 to 255. A signed integer must also show + or −. The computer uses the leftmost bit, the most significant bit (MSB), as the sign bit: 0 = positive, 1 = negative.ලකුණු රහිත නිඛිලයක් සියලු බිටු විශාලත්වය සඳහා භාවිත කරයි, එබැවින් එය 0 හෝ ධන විය හැකිය. බිටු 8 කින් 0 සිට 255 ලැබේ. ලකුණු සහිත නිඛිලයක් + හෝ − ද පෙන්විය යුතුය. පරිගණකය වම්කෙළවරේ බිටුව, වැඩිම වෙසෙසි බිටුව (MSB) ලකුණු බිටුව ලෙස භාවිත කරයි: 0 = ධන, 1 = සෘණ.

+45 (all methods)+45 (සියලු ක්‍රම)00101101−45 sign-magnitude−45 ලකුණු-විශාලත්වය10101101−45 1’s complement−45 1 හි අනුපූරකය11010010−45 2’s complement−45 2 හි අනුපූරකය11010011MSB = sign1’s = flip every bit; 2’s = flip then add 1
Three ways to store −45 in 8 bits−45 බිටු 8 කින් ගබඩා කරන ක්‍රම තුන
1
Sign-magnitudeලකුණු-විශාලත්වය
MSB = sign, the other 7 bits = the size. −45 = 1010 1101.MSB = ලකුණ, ඉතිරි බිටු 7 = විශාලත්වය. −45 = 1010 1101.
2
1’s complement1 හි අනුපූරකය
Write +45, then flip every bit. −45 = 1101 0010.+45 ලියා සෑම බිටුවක්ම පෙරළන්න. −45 = 1101 0010.
3
2’s complement2 හි අනුපූරකය
Flip every bit, then add 1. −45 = 1101 0011.සෑම බිටුවක්ම පෙරළා 1 එකතු කරන්න. −45 = 1101 0011.
🧮 Worked exampleවිසඳූ උදාහරණය Represent +45 and −45 in 8-bit sign-magnitude, 1’s complement and 2’s complement.+45 සහ −45 බිටු 8 ලකුණු-විශාලත්ව, 1 හි අනුපූරක සහ 2 හි අනුපූරක ලෙස නිරූපණය කරන්න.
+45 = 0010 1101 in all three (positive numbers look the same). −45: sign-magnitude 1010 1101, 1’s complement 1101 0010, 2’s complement 1101 0011.+45 = තුනේම 0010 1101 (ධන සංඛ්‍යා එක හා සමානයි). −45: ලකුණු-විශාලත්ව 1010 1101, 1 හි අනුපූරක 1101 0010, 2 හි අනුපූරක 1101 0011.
StepපියවරBitsබිටු
1. Write +45 in 8 bits1. +45 බිටු 8 කින් ලියන්න0010 11010010 1101
2. Flip every bit (1’s complement)2. සෑම බිටුවක්ම පෙරළන්න (1 හි අනුපූරකය)1101 00101101 0010
3. Add 1 (2’s complement)3. 1 එකතු කරන්න (2 හි අනුපූරකය)1101 00111101 0011
💡 2’s complement shortcut: copy the bits from the right up to and including the first 1, then flip all the bits to its left. +45 = 00101101 → 11010011.2 හි අනුපූරක කෙටි ක්‍රමය: දකුණේ සිට පළමු 1 ද ඇතුළුව බිටු පිටපත් කර, එහි වම් පස සියලු බිටු පෙරළන්න. +45 = 00101101 → 11010011.
🧮 Worked exampleවිසඳූ උදාහරණය What decimal number is the 8-bit 2’s complement value 1110 1100?බිටු 8 2 හි අනුපූරක අගය 1110 1100 දශමයෙන් කුමක්ද?
MSB is 1, so it is negative. Flip: 0001 0011, add 1: 0001 0100 = 20. So the answer is −20. (Or: the MSB is worth −128, so −128 + 64 + 32 + 8 + 4 = −20.)MSB 1 නිසා එය සෘණයි. පෙරළන්න: 0001 0011, 1 එකතු කරන්න: 0001 0100 = 20. එබැවින් පිළිතුර −20. (නැත්නම්: MSB අගය −128, එබැවින් −128 + 64 + 32 + 8 + 4 = −20.)
8-bit methodබිටු 8 ක්‍රමයSmallestකුඩාමLargestවිශාලතමZerosශුන්‍යFormula (n bits)සූත්‍රය (බිටු n)
Unsignedලකුණු රහිත00255255110 to 2ⁿ − 10 to 2ⁿ − 1
Sign-magnitudeලකුණු-විශාලත්වය−127−127+127+127two (+0, −0)දෙකක් (+0, −0)−(2ⁿ⁻¹ − 1) to 2ⁿ⁻¹ − 1−(2ⁿ⁻¹ − 1) to 2ⁿ⁻¹ − 1
1’s complement1 හි අනුපූරකය−127−127+127+127two (+0, −0)දෙකක් (+0, −0)−(2ⁿ⁻¹ − 1) to 2ⁿ⁻¹ − 1−(2ⁿ⁻¹ − 1) to 2ⁿ⁻¹ − 1
2’s complement2 හි අනුපූරකය−128−128+127+127oneඑකක්−2ⁿ⁻¹ to 2ⁿ⁻¹ − 1−2ⁿ⁻¹ to 2ⁿ⁻¹ − 1

Why 2’s complement wins: it has only one zero, it gives one extra negative number (−128), and the same adder circuit can add and subtract (you will see this in 3.3). That is why almost every processor uses it.2 හි අනුපූරකය ජය ගන්නේ ඇයි: එයට ඇත්තේ එක් ශුන්‍යයක් පමණි, එය අමතර සෘණ සංඛ්‍යාවක් (−128) ලබා දෙයි, සහ එකම එකතු කිරීමේ පරිපථයට එකතු කිරීම සහ අඩු කිරීම කළ හැක (3.3 හි දකිනු ඇත). එබැවින් බොහෝ සෑම සකසනයක්ම එය භාවිත කරයි.

NEW 20262026 නව Hex in everyday tech: web colours are hex – #1D5FD1 means red 1D (29), green 5F (95), blue D1 (209). IPv6 addresses are 128 bits written as 8 groups of 4 hex digits, e.g. 2001:0db8:0000:0000:0000:0000:0000:0001.එදිනෙදා තාක්ෂණයේ ෂඩ්දශමය: වෙබ් වර්ණ ෂඩ්දශමයි – #1D5FD1 යනු රතු 1D (29), කොළ 5F (95), නිල් D1 (209). IPv6 ලිපින බිටු 128 ක් වන අතර ෂඩ්දශම ඉලක්කම් 4 බැගින් කාණ්ඩ 8 ක් ලෙස ලියයි, උදා: 2001:0db8:0000:0000:0000:0000:0000:0001.
🚀 Beyond the syllabus (2026 update)🚀 විෂය නිර්දේශයෙන් ඔබ්බට (2026 යාවත්කාලීනය) Not required for the exam – read for interest.විභාගයට අවශ්‍ය නැත – දැනුම සඳහා කියවන්න. Beyond the syllabus – floating point (IEEE 754). Fractions such as 3.75 are not stored as integers. Computers use the IEEE 754 standard: a sign bit, an exponent and a mantissa (like scientific notation in binary). A 32-bit float has 1 sign bit, 8 exponent bits and 23 mantissa bits. 3.75 = 11.11₂ = 1.111 × 2¹. AI chips in 2025–2026 also use tiny formats such as FP8 and FP4 to run large models faster.විෂය නිර්දේශයෙන් ඔබ්බට – චල ලක්ෂ්‍ය (IEEE 754). 3.75 වැනි භාග නිඛිල ලෙස ගබඩා නොවේ. පරිගණක IEEE 754 ප්‍රමිතිය භාවිත කරයි: ලකුණු බිටුවක්, ඝාතයක් සහ මැන්ටිසාවක් (ද්වීමයෙන් විද්‍යාත්මක අංකනය වැනි). බිටු 32 float එකක ලකුණු බිටු 1, ඝාත බිටු 8 සහ මැන්ටිසා බිටු 23 ඇත. 3.75 = 11.11₂ = 1.111 × 2¹. 2025–2026 AI චිප ද විශාල ආකෘති වේගයෙන් ධාවනය කිරීමට FP8 සහ FP4 වැනි කුඩා ආකෘති භාවිත කරයි.

Key Wordsප්‍රධාන පද

Bitබිටුව
The smallest unit of data: a single 0 or 1.දත්තවල කුඩාම ඒකකය: තනි 0 ක් හෝ 1 ක්.
Byteබයිටය
A group of 8 bits.බිටු 8 ක කාණ්ඩයක්.
Nibbleනිබලය (Nibble)
A group of 4 bits, equal to one hex digit.බිටු 4 ක කාණ්ඩයක්, එක් ෂඩ්දශම ඉලක්කමකට සමානයි.
Base (radix)පාදය (Radix)
The number of different digits a number system uses.සංඛ්‍යා පද්ධතියක් භාවිත කරන වෙනස් ඉලක්කම් ගණන.
Binaryද්වීමය
The base 2 number system using only 0 and 1.0 සහ 1 පමණක් භාවිත කරන පාදය 2 සංඛ්‍යා පද්ධතිය.
Octalඅෂ්ටමය
The base 8 number system using digits 0 to 7.0 සිට 7 ඉලක්කම් භාවිත කරන පාදය 8 සංඛ්‍යා පද්ධතිය.
Hexadecimalෂඩ්දශමය
The base 16 number system using 0 to 9 and A to F.0 සිට 9 සහ A සිට F භාවිත කරන පාදය 16 සංඛ්‍යා පද්ධතිය.
Place valueස්ථානීය අගය
The value of a position, a power of the base.ස්ථානයක අගය, පාදයේ බලයක්.
MSBMSB (වැඩිම වෙසෙසි බිටුව)
The leftmost bit; the sign bit in a signed number.වම්කෙළවරේ බිටුව; ලකුණු සහිත සංඛ්‍යාවක ලකුණු බිටුව.
Unsigned integerලකුණු රහිත නිඛිලය
A whole number stored with no sign, so it is zero or positive.ලකුණක් නොමැතිව ගබඩා කළ පූර්ණ සංඛ්‍යාව, එබැවින් ශුන්‍ය හෝ ධනයි.
Sign-magnitudeලකුණු-විශාලත්වය
A sign bit followed by the size of the number in binary.ලකුණු බිටුවක් සහ ඉන්පසු ද්වීමයෙන් සංඛ්‍යාවේ විශාලත්වය.
1’s complement1 හි අනුපූරකය
A negative number made by flipping every bit of the positive number.ධන සංඛ්‍යාවේ සෑම බිටුවක්ම පෙරළා සාදන සෘණ සංඛ්‍යාව.
2’s complement2 හි අනුපූරකය
A negative number made by flipping every bit and adding 1.සෑම බිටුවක්ම පෙරළා 1 එකතු කර සාදන සෘණ සංඛ්‍යාව.

Sample Q&Aආදර්ශ ප්‍රශ්න සහ පිළිතුරු

1Why do computers use the binary system?පරිගණක ද්වීමය පද්ධතිය භාවිත කරන්නේ ඇයි?

Answerපිළිතුර: Electronic circuits have two stable states (on/off, high/low voltage). Two states are easy to make, easy to detect, reliable against noise, and match Boolean logic.ඉලෙක්ට්‍රොනික පරිපථවලට ස්ථායී අවස්ථා දෙකක් ඇත (on/off, ඉහළ/පහළ වෝල්ටීයතාව). අවස්ථා දෙකක් සෑදීමට සහ හඳුනාගැනීමට පහසුයි, ඝෝෂාවට එරෙහිව විශ්වාසදායකයි, සහ බූලියානු තර්කයට ගැළපේ.

2Convert 156₁₀ to binary, octal and hexadecimal.156₁₀ ද්වීමය, අෂ්ටමය සහ ෂඩ්දශමයට පරිවර්තනය කරන්න.

Answerපිළිතුර: Binary 10011100₂, octal 234₈, hexadecimal 9C₁₆.ද්වීමය 10011100₂, අෂ්ටමය 234₈, ෂඩ්දශමය 9C₁₆.

3Why is hexadecimal used by programmers?ක්‍රමලේඛකයින් ෂඩ්දශමය භාවිත කරන්නේ ඇයි?

Answerපිළිතුර: One hex digit stands for exactly 4 bits, so long binary values become short and easy to read, and converting back to binary is quick. Examples: memory addresses, colour codes, MAC and IPv6 addresses.එක් ෂඩ්දශම ඉලක්කමක් හරියටම බිටු 4 ක් නියෝජනය කරන නිසා දිගු ද්වීමය අගයන් කෙටි සහ කියවීමට පහසු වේ, සහ නැවත ද්වීමයට හැරවීම ඉක්මන්. උදා: මතක ලිපින, වර්ණ කේත, MAC සහ IPv6 ලිපින.

4What is the MSB and what does it show in a signed number?MSB යනු කුමක්ද සහ ලකුණු සහිත සංඛ්‍යාවක එය පෙන්වන්නේ කුමක්ද?

Answerපිළිතුර: The MSB is the most significant (leftmost) bit. In a signed number it is the sign bit: 0 means positive and 1 means negative.MSB යනු වැඩිම වෙසෙසි (වම්කෙළවරේ) බිටුවයි. ලකුණු සහිත සංඛ්‍යාවක එය ලකුණු බිටුවයි: 0 යනු ධන, 1 යනු සෘණ.

5Write −20 in 8-bit 2’s complement.−20 බිටු 8 2 හි අනුපූරකයෙන් ලියන්න.

Answerපිළිතුර: +20 = 0001 0100; flip = 1110 1011; add 1 = 1110 1100.+20 = 0001 0100; පෙරළීම = 1110 1011; 1 එකතු = 1110 1100.

6Give two disadvantages of sign-magnitude.ලකුණු-විශාලත්වයේ අවාසි දෙකක් දෙන්න.

Answerපිළිතුර: It has two zeros (00000000 and 10000000), and normal binary addition gives wrong answers when the signs are different, so extra circuits are needed.එයට ශුන්‍ය දෙකක් ඇත (00000000 සහ 10000000), සහ ලකුණු වෙනස් වූ විට සාමාන්‍ය ද්වීමය එකතු කිරීම වැරදි පිළිතුරු දෙයි, එබැවින් අමතර පරිපථ අවශ්‍යයි.

MCQබහුවරණ ප්‍රශ්න

Choose the correct answer for each question.සෑම ප්‍රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.

Scoreලකුණු: 0 / 20

1Why do computers use binary?පරිගණක ද්වීමය භාවිත කරන්නේ ඇයි?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

On/off states are easy to make and detect.On/off අවස්ථා සෑදීමට සහ හඳුනාගැනීමට පහසුයි.

2What is 156₁₀ in binary?156₁₀ ද්වීමයෙන් කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

156 = 128 + 16 + 8 + 4.156 = 128 + 16 + 8 + 4.

3What is 101101₂ in decimal?101101₂ දශමයෙන් කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

32 + 8 + 4 + 1 = 45.32 + 8 + 4 + 1 = 45.

4What is 2AF₁₆ in decimal?2AF₁₆ දශමයෙන් කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

2×256 + 10×16 + 15 = 687.2×256 + 10×16 + 15 = 687.

5What is 11010110₂ in hexadecimal?11010110₂ ෂඩ්දශමයෙන් කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

1101 = D, 0110 = 6.1101 = D, 0110 = 6.

6What is 11010110₂ in octal?11010110₂ අෂ්ටමයෙන් කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

011 010 110 = 3 2 6.011 010 110 = 3 2 6.

7What is 3C9₁₆ in binary?3C9₁₆ ද්වීමයෙන් කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

3 = 0011, C = 1100, 9 = 1001.3 = 0011, C = 1100, 9 = 1001.

8What is 157₈ in hexadecimal?157₈ ෂඩ්දශමයෙන් කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

001 101 111 → 0110 1111 = 6F.001 101 111 → 0110 1111 = 6F.

9How many bits does one hexadecimal digit stand for?එක් ෂඩ්දශම ඉලක්කමක් බිටු කීයක් නියෝජනය කරයිද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

16 = 2⁴.16 = 2⁴.

10What is −45 in 8-bit 2’s complement?−45 බිටු 8 2 හි අනුපූරකයෙන් කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Flip 00101101 → 11010010, add 1 → 11010011.00101101 පෙරළා → 11010010, 1 එකතු → 11010011.

11What is −45 in 8-bit sign-magnitude?−45 බිටු 8 ලකුණු-විශාලත්වයෙන් කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Sign 1 then 45 in 7 bits.ලකුණ 1 සහ බිටු 7 කින් 45.

12The 8-bit 2’s complement value 11101100 equals:බිටු 8 2 හි අනුපූරක අගය 11101100 සමාන වන්නේ:

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

−128 + 64 + 32 + 8 + 4 = −20.−128 + 64 + 32 + 8 + 4 = −20.

13What is the range of an 8-bit 2’s complement integer?බිටු 8 2 හි අනුපූරක නිඛිලයක පරාසය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

−2⁷ to 2⁷ − 1.−2⁷ සිට 2⁷ − 1.

14Which method has only one representation of zero?ශුන්‍යය සඳහා එක් නිරූපණයක් පමණක් ඇති ක්‍රමය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

SM and 1’s complement have +0 and −0.SM සහ 1 හි අනුපූරකයට +0 සහ −0 ඇත.

15What is the largest unsigned number in 8 bits?බිටු 8 ක විශාලතම ලකුණු රහිත සංඛ්‍යාව කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

2⁸ − 1 = 255.2⁸ − 1 = 255.

16In a signed binary number the MSB with value 1 means:ලකුණු සහිත ද්වීමය සංඛ්‍යාවක 1 අගය ඇති MSB යන්නෙන් අදහස් වන්නේ:

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

MSB is the sign bit.MSB ලකුණු බිටුවයි.

17Which term means: “The smallest unit of data: a single 0 or 1”?“දත්තවල කුඩාම ඒකකය: තනි 0 ක් හෝ 1 ක්” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Bit – The smallest unit of data: a single 0 or 1.බිටුව – දත්තවල කුඩාම ඒකකය: තනි 0 ක් හෝ 1 ක්.

18Which term means: “A group of 8 bits”?“බිටු 8 ක කාණ්ඩයක්” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Byte – A group of 8 bits.බයිටය – බිටු 8 ක කාණ්ඩයක්.

19Which term means: “A group of 4 bits, equal to one hex digit”?“බිටු 4 ක කාණ්ඩයක්, එක් ෂඩ්දශම ඉලක්කමකට සමානයි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Nibble – A group of 4 bits, equal to one hex digit.නිබලය (Nibble) – බිටු 4 ක කාණ්ඩයක්, එක් ෂඩ්දශම ඉලක්කමකට සමානයි.

20Which term means: “The number of different digits a number system uses”?“සංඛ්‍යා පද්ධතියක් භාවිත කරන වෙනස් ඉලක්කම් ගණන” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Base (radix) – The number of different digits a number system uses.පාදය (Radix) – සංඛ්‍යා පද්ධතියක් භාවිත කරන වෙනස් ඉලක්කම් ගණන.

MCQ answer keyMCQ පිළිතුරු

  1. C – On/off states are easy to make and detect.On/off අවස්ථා සෑදීමට සහ හඳුනාගැනීමට පහසුයි.
  2. E – 156 = 128 + 16 + 8 + 4.156 = 128 + 16 + 8 + 4.
  3. A – 32 + 8 + 4 + 1 = 45.32 + 8 + 4 + 1 = 45.
  4. D – 2×256 + 10×16 + 15 = 687.2×256 + 10×16 + 15 = 687.
  5. C – 1101 = D, 0110 = 6.1101 = D, 0110 = 6.
  6. B – 011 010 110 = 3 2 6.011 010 110 = 3 2 6.
  7. A – 3 = 0011, C = 1100, 9 = 1001.3 = 0011, C = 1100, 9 = 1001.
  8. C – 001 101 111 → 0110 1111 = 6F.001 101 111 → 0110 1111 = 6F.
  9. E – 16 = 2⁴.16 = 2⁴.
  10. B – Flip 00101101 → 11010010, add 1 → 11010011.00101101 පෙරළා → 11010010, 1 එකතු → 11010011.
  11. E – Sign 1 then 45 in 7 bits.ලකුණ 1 සහ බිටු 7 කින් 45.
  12. D – −128 + 64 + 32 + 8 + 4 = −20.−128 + 64 + 32 + 8 + 4 = −20.
  13. D – −2⁷ to 2⁷ − 1.−2⁷ සිට 2⁷ − 1.
  14. A – SM and 1’s complement have +0 and −0.SM සහ 1 හි අනුපූරකයට +0 සහ −0 ඇත.
  15. A – 2⁸ − 1 = 255.2⁸ − 1 = 255.
  16. E – MSB is the sign bit.MSB ලකුණු බිටුවයි.
  17. B – Bit – The smallest unit of data: a single 0 or 1.බිටුව – දත්තවල කුඩාම ඒකකය: තනි 0 ක් හෝ 1 ක්.
  18. C – Byte – A group of 8 bits.බයිටය – බිටු 8 ක කාණ්ඩයක්.
  19. B – Nibble – A group of 4 bits, equal to one hex digit.නිබලය (Nibble) – බිටු 4 ක කාණ්ඩයක්, එක් ෂඩ්දශම ඉලක්කමකට සමානයි.
  20. D – Base (radix) – The number of different digits a number system uses.පාදය (Radix) – සංඛ්‍යා පද්ධතියක් භාවිත කරන වෙනස් ඉලක්කම් ගණන.

Structured Questionsව්‍යුහගත ප්‍රශ්න

1(a) Convert 2026₁₀ to binary showing the division. (b) Convert your answer to octal and hexadecimal by grouping.(a) බෙදීම පෙන්වමින් 2026₁₀ ද්වීමයට පරිවර්තනය කරන්න. (b) කාණ්ඩ කිරීමෙන් පිළිතුර අෂ්ටමය සහ ෂඩ්දශමයට හරවන්න. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(a) repeated ÷2, remainders bottom to top = 11111101010₂; (b) groups of 3 = 3752₈; groups of 4 = 7EA₁₆.(a) නැවත නැවත ÷2, ශේෂ පහළ සිට ඉහළට = 11111101010₂; (b) 3 බැගින් = 3752₈; 4 බැගින් = 7EA₁₆.

2Convert to decimal showing place values: (a) 101101₂ (b) 347₈ (c) 2AF₁₆.ස්ථානීය අගයන් පෙන්වමින් දශමයට හරවන්න: (a) 101101₂ (b) 347₈ (c) 2AF₁₆. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(a) 32+8+4+1 = 45; (b) 3×64+4×8+7 = 231; (c) 2×256+10×16+15 = 687.(a) 32+8+4+1 = 45; (b) 3×64+4×8+7 = 231; (c) 2×256+10×16+15 = 687.

3Represent −45 in 8 bits using (a) sign-magnitude (b) 1’s complement (c) 2’s complement.−45 බිටු 8 කින් නිරූපණය කරන්න (a) ලකුණු-විශාලත්වය (b) 1 හි අනුපූරකය (c) 2 හි අනුපූරකය. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(a) 10101101; (b) 11010010; (c) 11010011.(a) 10101101; (b) 11010010; (c) 11010011.

4(a) Give the range of 8-bit unsigned and 8-bit 2’s complement integers. (b) Give two reasons why 2’s complement is preferred.(a) බිටු 8 ලකුණු රහිත සහ බිටු 8 2 හි අනුපූරක නිඛිලවල පරාසය දෙන්න. (b) 2 හි අනුපූරකයට වැඩි කැමැත්තක් දක්වන හේතු දෙකක් දෙන්න. (4 marksලකුණු 4)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(a) unsigned 0 to 255; 2’s complement −128 to +127; (b) only one zero; the same adder does addition and subtraction.(a) ලකුණු රහිත 0 සිට 255; 2 හි අනුපූරක −128 සිට +127; (b) එක් ශුන්‍යයක් පමණි; එකම එකතු කිරීමේ පරිපථය එකතු කිරීම සහ අඩු කිරීම කරයි.

5(a) Find the decimal value of the 8-bit 2’s complement number 11101100. (b) Convert 2F₁₆ to octal.(a) බිටු 8 2 හි අනුපූරක සංඛ්‍යාව 11101100 හි දශම අගය සොයන්න. (b) 2F₁₆ අෂ්ටමයට හරවන්න. (4 marksලකුණු 4)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(a) MSB 1 so negative; flip and add 1 gives 20; value −20; (b) 0010 1111 → 000 101 111 = 57₈.(a) MSB 1 නිසා සෘණ; පෙරළා 1 එකතු කළ විට 20; අගය −20; (b) 0010 1111 → 000 101 111 = 57₈.

🎮 Game🎮 ක්‍රීඩා

Pick a game. Each one uses words from this lesson.ක්‍රීඩාවක් තෝරන්න. හැම එකක්ම මේ පාඩමේ වචන පාවිච්චි කරනවා.

Summary & Downloadsසාරාංශය සහ බාගත කිරීම්

Key pointsප්‍රධාන කරුණු

  • Computers use two states (0 and 1) because they are easy, reliable and match logic.පහසු, විශ්වාසදායක සහ තර්කයට ගැළපෙන නිසා පරිගණක අවස්ථා දෙකක් (0 සහ 1) භාවිත කරයි.
  • Bases: decimal 10, binary 2, octal 8, hexadecimal 16 (A–F = 10–15).පාද: දශමය 10, ද්වීමය 2, අෂ්ටමය 8, ෂඩ්දශමය 16 (A–F = 10–15).
  • Decimal → base: divide and read remainders bottom to top. Base → decimal: multiply by place values and add.දශමය → පාදය: බෙදා ශේෂ පහළ සිට ඉහළට කියවන්න. පාදය → දශමය: ස්ථානීය අගයෙන් ගුණ කර එකතු කරන්න.
  • Binary ↔ octal: groups of 3 bits; binary ↔ hex: groups of 4 bits, from the right.ද්වීමය ↔ අෂ්ටමය: බිටු 3 කාණ්ඩ; ද්වීමය ↔ ෂඩ්දශමය: බිටු 4 කාණ්ඩ, දකුණේ සිට.
  • Signed numbers use the MSB as the sign bit: sign-magnitude, 1’s complement (flip), 2’s complement (flip + 1).ලකුණු සහිත සංඛ්‍යා MSB ලකුණු බිටුව ලෙස යොදයි: ලකුණු-විශාලත්වය, 1 හි අනුපූරකය (පෙරළීම), 2 හි අනුපූරකය (පෙරළීම + 1).
  • 8-bit 2’s complement range is −128 to +127 with only one zero, so CPUs use it.බිටු 8 2 හි අනුපූරක පරාසය −128 සිට +127, එක් ශුන්‍යයක් පමණි, එබැවින් CPU එය භාවිත කරයි.

Downloadsබාගත කිරීම්

Full Lesson 3 PDFසම්පූර්ණ පාඩම 3 PDF: English · සිංහල

Next noteඊළඟ සටහන 3.2 →

© 2026 schoolict.net (Ruwan Mangala Suraweera). All rights reserved.සියලු හිමිකම් ඇවිරිණි.