Chapterبەش 2 · Lectureوانە 2.3

From Binary, Octal and Hex to Decimalلە دووانی، هەشتی و شانزەییەوە بۆ دەیی

One method for every base — digit × place value, then add — with binary (and the double-and-add shortcut), octal and hexadecimal, fraction digits with negative powers, and the midterm question (164.E4)16=(356.890625)10(164.\mathrm{E4})_{16} = (356.890625)_{10}.

یەک ڕێگا بۆ هەموو — × ، پاشان کۆکردنەوە — بۆ (و کورتەڕێی دوو هێندەکردن و زیادکردن)، و ، بە سالب و پرسیاری نیوەی وەرز (164.E4)16=(356.890625)10(164.\mathrm{E4})_{16} = (356.890625)_{10}.

9 min read10 خولەک خوێندنەوە · 11 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Write the place value of every digit of a binary, octal or hexadecimal number, including digits after the point.
  • Convert binary, octal and hexadecimal numbers to decimal by adding digit × place value.
  • Use the double-and-add shortcut for long binary numbers.
  • Check a conversion by converting back.
  • بۆ هەر ژمارەیەکی ، یان بنووسیت، لەوانە دوای خاڵەکە.
  • ژمارە ، و بە کۆکردنەوەی × بگۆڕیت بۆ .
  • کورتەڕێی دوو هێندەکردن و زیادکردن بۆ ژمارە درێژەکان بەکاربهێنیت.
  • گۆڕینێک بە گەڕاندنەوە بپشکنیت.

One method for every baseیەک ڕێگا بۆ هەموو بنچینەیەک

Converting to decimal is the easy direction. You already know the idea from Number systems: every digit is worth digit × place value, and the number is the sum.

گۆڕین بۆ ئاراستە ئاسانەکەیە. بیرۆکەکەت پێشتر لە سیستەمە ژمارەییەکان ناسیوە: بەهای هەر یەکسانە بە × و ژمارەکە کۆی هەموویانە.

Sum of place valuesکۆی بەها خانەییەکان
  1. Number the places starting at the point: 0, 1, 2, 3 … to the left and −1,−2,−3,…-1, -2, -3, \ldots to the right.

    خانەکان لە خاڵەکەوە ژمارە بکە: 0، 1، 2، 3 … بەرەو چەپ و −1,−2,−3,…-1, -2, -3, \ldots بەرەو ڕاست.

  2. The place value of position k is base to the power k: rkr^{k}.

    لە شوێنی k یەکسانە بە بە k: rkr^{k}.

  3. Multiply each digit by its place value (A–F count as 10–15).

    هەر لەگەڵ لێک بدە (⁦A–F⁩ بە ⁦10–15⁩ دادەنرێن).

  4. Add all the products. The sum is the decimal number.

    هەموو لێکدانەکان کۆ بکەرەوە. کۆکە ژمارە .

Quick checkپشکنینی خێراWhat is the place value of the third digit to the left of the point in an octal number?لە ژمارەیەکی ، سێیەم لە لای چەپی خاڵەکەوە چەندە؟

One method for every baseیەک ڕێگا بۆ هەموو بنچینەیەک

Counting money in bundlesژماردنی پارە بە دەستە

Everyday analogyنموونەیەک لە ژیانی ڕۆژانەوە

A shopkeeper in the bazaar counts his money in bundles: 3 bundles of 1,000 dinars, 4 of 100 and 7 single notes make 3×1000+4×100+7=34073 \times 1000 + 4 \times 100 + 7 = 3407 dinars. A number in any base works the same way: each digit says how many bundles of one size there are. In base 8 the bundle sizes are 1, 8, 64, 512 …; in base 16 they are 1, 16, 256, 4096 ….

دوکاندارێک لە بازاڕدا پارەکەی بە دەستە دەژمێرێت: 3 دەستەی ⁦1,000⁩ دیناری، 4 دەستەی ⁦100⁩ دیناری و 7 پارەی تاک دەکاتە 3×1000+4×100+7=34073 \times 1000 + 4 \times 100 + 7 = 3407 دینار. ژمارە لە هەر بە هەمان شێوە کار دەکات: هەر دەڵێت چەند دەستەی یەک قەبارە هەیە. لە 8دا قەبارەی دەستەکان 1، 8، ⁦64⁩، ⁦512⁩ و هتد؛ لە ⁦16⁩دا 1، ⁦16⁩، ⁦256⁩، ⁦4096⁩ و هتد.

Where the analogy stops workingسنووری ئەم نموونەیە

A shopkeeper may have 12 bundles of the same size; in a number a digit is never bigger than r−1r - 1 (base minus one), because base-many bundles are swapped for one bundle of the next size.

دوکاندار دەکرێت ⁦12⁩ دەستەی هەمان قەبارەی هەبێت؛ بەڵام لە ژمارەدا هەرگیز لە r−1r - 1 ( کەم یەک) گەورەتر نییە، چونکە ئەوەندە دەستە کە ژمارەیان یەکسانە بە دەگۆڕدرێنەوە بە یەک دەستەی قەبارەی دواتر.

Quick checkپشکنینی خێراIn base 16, what are the first four bundle sizes, from the right?لە ⁦16⁩دا، چوار قەبارەی یەکەمی دەستەکان، لە ڕاستەوە، چین؟

Binary to decimalدووانی بۆ دەیی

The place values of binary are powers of 2: … 23 22 21 20 . 2−1 2−2 …\ldots\ 2^3\ 2^2\ 2^1\ 2^0\ .\ 2^{-1}\ 2^{-2}\ \ldots Every binary digit is 0 or 1, so the multiplication is trivial: add the place values of the 1 bits and skip the 0 bits. The sum is the decimal number.

2ـن: … 23 22 21 20 . 2−1 2−2 …\ldots\ 2^3\ 2^2\ 2^1\ 2^0\ .\ 2^{-1}\ 2^{-2}\ \ldots هەر 0 یان 1ـە، بۆیە لێکدانەکە زۆر ئاسانە: ئەو 1ـن کۆ بکەرەوە و 0ـەکان جێبهێڵە. کۆکە ژمارە .

Binary place values around the point لە دەوری خاڵەکە
Placeخانە232^{3}222^{2}212^{1}202^{0}2−12^{-1}2−22^{-2}2−32^{-3}2−42^{-4}
Place value842112=0.5\tfrac{1}{2} = 0.514=0.25\tfrac{1}{4} = 0.2518=0.125\tfrac{1}{8} = 0.125116=0.0625\tfrac{1}{16} = 0.0625
A place-value table for (1111.1011)₂. The top row shows the place values 2³ = 8, 2² = 4, 2¹ = 2, 2⁰ = 1, then the point, then 2⁻¹ = 0.5, 2⁻² = 0.25, 2⁻³ = 0.125, 2⁻⁴ = 0.0625. The middle row shows the bits 1 1 1 1 . 1 0 1 1. Frame by frame one column is processed: a 1 bit adds its place value to the running total, the 0 bit adds nothing. The total grows 8, 12, 14, 15, 15.5, 15.5, 15.625, 15.6875, and the last frame shows 8 + 4 + 2 + 1 + 0.5 + 0.125 + 0.0625 = 15.6875.
A place-value table for (1111.1011)₂. The top row shows the place values 2³ = 8, 2² = 4, 2¹ = 2, 2⁰ = 1, then the point, then 2⁻¹ = 0.5, 2⁻² = 0.25, 2⁻³ = 0.125, 2⁻⁴ = 0.0625. The middle row shows the bits 1 1 1 1 . 1 0 1 1. Frame by frame one column is processed: a 1 bit adds its place value to the running total, the 0 bit adds nothing. The total grows 8, 12, 14, 15, 15.5, 15.5, 15.625, 15.6875, and the last frame shows 8 + 4 + 2 + 1 + 0.5 + 0.125 + 0.0625 = 15.6875.
Every 1 bit drops its place value into the total; every 0 bit adds nothing.هەر 1 دەخاتە ناو کۆکەوە؛ هەر 0 هیچ زیاد ناکات.CêIT
Worked exampleنموونەی شیکراوە
(1111.1011)2=1⋅23+1⋅22+1⋅21+1⋅20+1⋅2−1+0⋅2−2+1⋅2−3+1⋅2−4=8+4+2+1+12+0+18+116=15+8+2+116=151116=(15.6875)10\begin{aligned} (1111.1011)_2 &= 1\cdot2^{3} + 1\cdot2^{2} + 1\cdot2^{1} + 1\cdot2^{0} + 1\cdot2^{-1} + 0\cdot2^{-2} + 1\cdot2^{-3} + 1\cdot2^{-4} \\ &= 8 + 4 + 2 + 1 + \tfrac{1}{2} + 0 + \tfrac{1}{8} + \tfrac{1}{16} \\ &= 15 + \tfrac{8 + 2 + 1}{16} = 15\tfrac{11}{16} = (15.6875)_{10} \end{aligned}

The whole part gives 15; the fraction part gives 1116=0.6875\tfrac{11}{16} = 0.6875.

بەشی تەواو ⁦15⁩ دەدات؛ بەشی 1116=0.6875\tfrac{11}{16} = 0.6875 دەدات.

Quick checkپشکنینی خێراWhat is (10110)2(10110)_2 in decimal?(10110)2(10110)_2 بە چەندە؟

How to Convert Binary to Decimaltecmath · Englishئینگلیزی · 668K viewsبینین · 13K likesلایک

A short, clear way to turn a binary number into decimal: give each digit its place value and add the values under the 1s.

بۆ : لە ڕاستەوە بنووسە و هەر جارێک دوو هێندەی بکە، پاشان ئەوانە کۆ بکەرەوە کە 1یان لە ژێردایە.

Checked a frame: weights 1, 2, 4, 8, 16 written over 10110.

لە ڤیدیۆکەدا 1، 2، 4، 8، ⁦16⁩ لەسەر ⁦10110⁩ نووسراون.

Binary to decimalدووانی بۆ دەیی

A shortcut for long numbers: double and addکورتەڕێیەک بۆ ژمارەی درێژ: دوو هێندە بکە و زیاد بکە

For a long binary number you do not need a table of place values. Start with 0. Go through the bits from the left: each time, double the value you have and add the next bit.

بۆ ژمارەیەکی درێژ پێویستت بە خشتەی نییە. لە 0ـەوە دەست پێبکە. لە چەپەوە بە بڕۆ: هەر جارێک ئەو نرخەی هەتە دوو هێندە بکە و دواتری بۆ زیاد بکە.

(1101101)2(1101101)_2 by doubling: 0×2+1=10 \times 2 + 1 = 1, 1×2+1=31 \times 2 + 1 = 3, 3×2+0=63 \times 2 + 0 = 6, …, 54×2+1=10954 \times 2 + 1 = 109(1101101)2(1101101)_2 بە دوو هێندەکردن: 0×2+1=10 \times 2 + 1 = 1، 1×2+1=31 \times 2 + 1 = 3، 3×2+0=63 \times 2 + 0 = 6، …، 54×2+1=10954 \times 2 + 1 = 109
Bit1101101
Value so farنرخی تا ئێستا136132754109

Why does it work? Each doubling moves every bit you have already read one place to the left — exactly what happens to its place value when one more bit follows it. In Python the same method is a loop of three lines: see Improving the converter.

بۆچی کار دەکات؟ هەر دوو هێندەکردنێک هەموو ئەو پێشتر خوێندووتن یەک خانە بەرەو چەپ دەبات — ڕێک ئەوەی بەسەر دێت کاتێک تر دوای دێت. لە Pythonـدا هەمان ڕێگا بە و سێ دێڕ دەنووسرێت: بڕوانە باشترکردنی گۆڕەرەکە.

Quick checkپشکنینی خێراUse double-and-add on (10010001)2(10010001)_2. What do you get?دوو هێندەکردن و زیادکردن لەسەر (10010001)2(10010001)_2 بەکاربهێنە. چی وەردەگریت؟

Octal to decimalهەشتی بۆ دەیی

The place values of octal are powers of 8: … 82 81 80 . 8−1 8−2 …\ldots\ 8^2\ 8^1\ 8^0\ .\ 8^{-1}\ 8^{-2}\ \ldots Multiply each digit by its place value and add the products.

8ـن: … 82 81 80 . 8−1 8−2 …\ldots\ 8^2\ 8^1\ 8^0\ .\ 8^{-1}\ 8^{-2}\ \ldots هەر لەگەڵ لێک بدە و لێکدانەکان کۆ بکەرەوە.

Octal place values
Placeخانە848^{4}838^{3}828^{2}818^{1}808^{0}8−18^{-1}8−28^{-2}
Place value409651264810.1250.015625
(125)8=64+16+5=(85)10(125)_8 = 64 + 16 + 5 = (85)_{10}(125)8=64+16+5=(85)10(125)_8 = 64 + 16 + 5 = (85)_{10}
DigitPlace valueDigit × place value ×
182=648^{2} = 6464
281=88^{1} = 816
580=18^{0} = 15
Sumکۆ—85
Quick checkپشکنینی خێراWhat is (31)8(31)_8 in decimal?(31)8(31)_8 بە چەندە؟

Hexadecimal to decimalشانزەیی بۆ دەیی

The place values of hexadecimal are powers of 16: … 163 162 161 160 . 16−1 16−2 …\ldots\ 16^3\ 16^2\ 16^1\ 16^0\ .\ 16^{-1}\ 16^{-2}\ \ldots First replace each letter by its value (A=10,…,F=15\mathrm{A} = 10, \ldots, \mathrm{F} = 15), then multiply and add as before.

⁦16⁩ـن: … 163 162 161 160 . 16−1 16−2 …\ldots\ 16^3\ 16^2\ 16^1\ 16^0\ .\ 16^{-1}\ 16^{-2}\ \ldots سەرەتا هەر پیتێک بە نرخەکەی بگۆڕە (A=10,…,F=15\mathrm{A} = 10, \ldots, \mathrm{F} = 15)، پاشان وەک پێشوو لێک بدە و کۆ بکەرەوە.

Hexadecimal place values
Placeخانە16416^{4}16316^{3}16216^{2}16116^{1}16016^{0}16−116^{-1}16−216^{-2}
Place value6553640962561610.06250.00390625
(B2F8)16=45056+512+240+8=(45816)10(\mathrm{B2F8})_{16} = 45056 + 512 + 240 + 8 = (45816)_{10}(B2F8)16=45056+512+240+8=(45816)10(\mathrm{B2F8})_{16} = 45056 + 512 + 240 + 8 = (45816)_{10}
DigitPlace valueDigit × place value ×
B=11\mathrm{B} = 11163=409616^{3} = 409645056
2162=25616^{2} = 256512
F=15\mathrm{F} = 15161=1616^{1} = 16240
8160=116^{0} = 18
Sumکۆ—45816

Another route: first turn each hex digit into its 4 bits (Binary, Octal and Hex Shortcuts), then add the place values of the binary number. For long numbers the direct method above is usually quicker.

ڕێگایەکی تر: سەرەتا هەر بگۆڕە بۆ 4 (کورتەڕێکانی دووانی، هەشتی و شانزەیی)، پاشان ژمارە کۆ بکەرەوە. بۆ ژمارەی درێژ ڕێگا ڕاستەوخۆکەی سەرەوە زۆربەی جار خێراترە.

Quick checkپشکنینی خێراWhat is (2F)16(2F)_{16} in decimal?(2F)16(2F)_{16} بە چەندە؟

Read and Write in Hexadecimal, The Easy Way!Max's Tech · Englishئینگلیزی · 168K viewsبینین · 4.9K likesلایک · Partبەشی 0:15–2:49 (ofلە 6:35)

Reading a hexadecimal number: each place is worth 1, 16, 256 …, and the letters A–F stand for 10–15.

خوێندنەوەی ژمارەیەکی : هەر خانەیەک بەهایەکی هەیە (⁦1⁩، ⁦16⁩، ⁦256⁩ …) و پیتەکانی A تا F جێگەی ⁦10⁩ تا ⁦15⁩ دەگرنەوە.

Chapter 0:15 example only (place values 256, 16, 1); the 2:49 decimal-to-hex part is not used.

تەنها نموونەکەی ⁦0:15⁩ ( ⁦256⁩، ⁦16⁩، ⁦1⁩)؛ بەشی ⁦2:49⁩، بۆ ، بەکار نەهێنراوە.

Exam example: 164.E4 to decimalنموونەی تاقیکردنەوە: ⁦164.E4⁩ بۆ دەیی

This question comes from the course's midterm exam: convert (164.E4)16(164.\mathrm{E4})_{16} to decimal using its place values. It has digits on both sides of the point and a letter after the point.

ئەم پرسیارە لە تاقیکردنەوەی نیوەی وەرزی کۆرسەکەوە هاتووە: (164.E4)16(164.\mathrm{E4})_{16} بە بەکارهێنانی بگۆڕە بۆ . لە هەردوو لای خاڵەکەوە هەیە و پیتێکیش دوای خاڵەکە.

ExerciseڕاهێنانConvert (164.E4)16(164.\mathrm{E4})_{16} to decimal(164.E4)16(164.\mathrm{E4})_{16} بگۆڕە بۆ دەیی

Convert (164.E4)16(164.\mathrm{E4})_{16} to its decimal equivalent using its place values.

(164.E4)16(164.\mathrm{E4})_{16} بە بەکارهێنانی بگۆڕە بۆ هاوتا .

Hintئاماژە

E=14\mathrm{E} = 14. After the point the place values are 116\tfrac{1}{16} and 1256\tfrac{1}{256}.

E=14\mathrm{E} = 14. دوای خاڵەکە 116\tfrac{1}{16} و 1256\tfrac{1}{256}ـن.

Show answerوەڵامەکە پیشان بدە
DigitPlace valueDigit × place value ×
1162=25616^{2} = 256256
6161=1616^{1} = 1696
4160=116^{0} = 14
E=14\mathrm{E} = 1416−1=11616^{-1} = \tfrac{1}{16}0.875
416−2=125616^{-2} = \tfrac{1}{256}0.015625
Sumکۆ—356.890625
1×162+6×161+4×160+14×16−1+4×16−2=256+96+4+0.875+0.015625=(356.890625)101\times16^{2} + 6\times16^{1} + 4\times16^{0} + 14\times16^{-1} + 4\times16^{-2} = 256 + 96 + 4 + 0.875 + 0.015625 = (356.890625)_{10}

Notice the difference from the previous lesson's exam question: going to decimal always ends, because every place value 116,1256,…\tfrac{1}{16}, \tfrac{1}{256}, \ldots is a finite decimal. Only the other direction can produce endless digits.

سەرنجی جیاوازییەکە بدە لەگەڵ پرسیاری تاقیکردنەوەی وانەی پێشوو: گۆڕین بۆ هەمیشە کۆتایی دێت، چونکە هەموو وەک 116,1256,…\tfrac{1}{16}, \tfrac{1}{256}, \ldots ژمارەیەکی کە کۆتایی دێت. تەنها ئاراستەکەی تر دەتوانێت بێکۆتا دروست بکات.

Quick checkپشکنینی خێراWhat is the value of the digit E in (164.E4)16(164.\mathrm{E4})_{16}?نرخی E لە (164.E4)16(164.\mathrm{E4})_{16}دا چەندە؟

Common mistakesهەڵە باوەکان

MistakeهەڵەFixچارەسەر
Starting the powers at 1 (the right-hand digit gets 212^1).دەستپێکردنی لە 1ـەوە ( لای ڕاست 212^1 وەردەگرێت).The place just left of the point is position 0: r0=1r^0 = 1.خانەی ڕاستەوخۆ لای چەپی خاڵەکە شوێنی 0ـە: r0=1r^0 = 1.
Positive powers after the point. موجەب دوای خاڵەکە.After the point the powers are −1,−2,…-1, -2, \ldots: 1r,1r2,…\tfrac{1}{r}, \tfrac{1}{r^2}, \ldotsدوای خاڵەکە −1,−2,…-1, -2, \ldotsـن: 1r,1r2,…\tfrac{1}{r}, \tfrac{1}{r^2}, \ldots
Reading the bits from the wrong end.خوێندنەوەی لە لای هەڵەوە.The right-hand bit (just left of the point) is the LSB, worth 1. لای ڕاست (ڕاستەوخۆ لای چەپی خاڵەکە) LSBـە و بەهاکەی 1ـە.
Using the letter, not its value: writing B×4096\mathrm{B} \times 4096 as “B4096”.بەکارهێنانی پیتەکە نەک نرخەکەی: نووسینی B×4096\mathrm{B} \times 4096 وەک «⁦B4096⁩».Replace A–F by 10–15 before you multiply.پێش لێکدان ⁦A–F⁩ بە ⁦10–15⁩ بگۆڕە.
Multiplying by the wrong base (powers of 10 for an octal number).لێکدان لە هەڵە ( ⁦10⁩ بۆ ژمارەیەکی ).Look at the subscript first: base 8 means powers of 8.سەرەتا سەیری بکە: 8 واتە 8.

Exercisesڕاهێنانەکان

ExerciseڕاهێنانBinary to decimalدووانی بۆ دەیی

Convert to decimal: (a) (1101101)2(1101101)_2 (b) (10010001)2(10010001)_2 (c) (111.1011)2(111.1011)_2 (d) (10.111)2(10.111)_2 (e) (10111101.011)2(10111101.011)_2

بگۆڕە بۆ : (أ) (1101101)2(1101101)_2 (ب) (10010001)2(10010001)_2 (ج) (111.1011)2(111.1011)_2 (د) (10.111)2(10.111)_2 (هـ) (10111101.011)2(10111101.011)_2

Show answerوەڵامەکە پیشان بدە
  • (a) 64+32+8+4+1=10964 + 32 + 8 + 4 + 1 = 109
  • (b) 128+16+1=145128 + 16 + 1 = 145
  • (c) 4+2+1+0.5+0.125+0.0625=7.68754 + 2 + 1 + 0.5 + 0.125 + 0.0625 = 7.6875
  • (d) 2+0.5+0.25+0.125=2.8752 + 0.5 + 0.25 + 0.125 = 2.875
  • (e) 128+32+16+8+4+1+0.25+0.125=189.375128 + 32 + 16 + 8 + 4 + 1 + 0.25 + 0.125 = 189.375
  • (أ) 64+32+8+4+1=10964 + 32 + 8 + 4 + 1 = 109
  • (ب) 128+16+1=145128 + 16 + 1 = 145
  • (ج) 4+2+1+0.5+0.125+0.0625=7.68754 + 2 + 1 + 0.5 + 0.125 + 0.0625 = 7.6875
  • (د) 2+0.5+0.25+0.125=2.8752 + 0.5 + 0.25 + 0.125 = 2.875
  • (هـ) 128+32+16+8+4+1+0.25+0.125=189.375128 + 32 + 16 + 8 + 4 + 1 + 0.25 + 0.125 = 189.375
ExerciseڕاهێنانOctal to decimalهەشتی بۆ دەیی

Convert to decimal: (a) (73)8(73)_8 (b) (125)8(125)_8 (c) (12)8(12)_8 (d) (27)8(27)_8 (e) (103)8(103)_8

بگۆڕە بۆ : (أ) (73)8(73)_8 (ب) (125)8(125)_8 (ج) (12)8(12)_8 (د) (27)8(27)_8 (هـ) (103)8(103)_8

Show answerوەڵامەکە پیشان بدە
  • (a) 7×8+3=597 \times 8 + 3 = 59
  • (b) 1×64+2×8+5=851 \times 64 + 2 \times 8 + 5 = 85 — the worked example; try it again without looking
  • (c) 1×8+2=101 \times 8 + 2 = 10
  • (d) 2×8+7=232 \times 8 + 7 = 23
  • (e) 1×64+0×8+3=671 \times 64 + 0 \times 8 + 3 = 67
  • (أ) 7×8+3=597 \times 8 + 3 = 59
  • (ب) 1×64+2×8+5=851 \times 64 + 2 \times 8 + 5 = 85 — نموونە شیکراوەکەیە؛ بەبێ سەیرکردن دووبارە تاقی بکەرەوە
  • (ج) 1×8+2=101 \times 8 + 2 = 10
  • (د) 2×8+7=232 \times 8 + 7 = 23
  • (هـ) 1×64+0×8+3=671 \times 64 + 0 \times 8 + 3 = 67
ExerciseڕاهێنانHexadecimal to decimalشانزەیی بۆ دەیی

Convert to decimal: (a) (1C)16(1\mathrm{C})_{16} (b) (A85)16(\mathrm{A}85)_{16} (c) (6BD)16(6\mathrm{BD})_{16} (d) (E5)16(\mathrm{E}5)_{16} (e) (B2F8)16(\mathrm{B}2\mathrm{F}8)_{16} (f) (60A)16(60\mathrm{A})_{16}

بگۆڕە بۆ : (أ) (1C)16(1\mathrm{C})_{16} (ب) (A85)16(\mathrm{A}85)_{16} (ج) (6BD)16(6\mathrm{BD})_{16} (د) (E5)16(\mathrm{E}5)_{16} (هـ) (B2F8)16(\mathrm{B}2\mathrm{F}8)_{16} (و) (60A)16(60\mathrm{A})_{16}

Show answerوەڵامەکە پیشان بدە
  • (a) 1×16+12=281 \times 16 + 12 = 28
  • (b) 10×256+8×16+5=2560+128+5=269310 \times 256 + 8 \times 16 + 5 = 2560 + 128 + 5 = 2693
  • (c) 6×256+11×16+13=1536+176+13=17256 \times 256 + 11 \times 16 + 13 = 1536 + 176 + 13 = 1725
  • (d) 14×16+5=22914 \times 16 + 5 = 229
  • (e) 11×4096+2×256+15×16+8=4581611 \times 4096 + 2 \times 256 + 15 \times 16 + 8 = 45816 — the worked example; try it again without looking
  • (f) 6×256+0×16+10=15466 \times 256 + 0 \times 16 + 10 = 1546
  • (أ) 1×16+12=281 \times 16 + 12 = 28
  • (ب) 10×256+8×16+5=2560+128+5=269310 \times 256 + 8 \times 16 + 5 = 2560 + 128 + 5 = 2693
  • (ج) 6×256+11×16+13=1536+176+13=17256 \times 256 + 11 \times 16 + 13 = 1536 + 176 + 13 = 1725
  • (د) 14×16+5=22914 \times 16 + 5 = 229
  • (هـ) 11×4096+2×256+15×16+8=4581611 \times 4096 + 2 \times 256 + 15 \times 16 + 8 = 45816 — نموونە شیکراوەکەیە؛ بەبێ سەیرکردن دووبارە تاقی بکەرەوە
  • (و) 6×256+0×16+10=15466 \times 256 + 0 \times 16 + 10 = 1546

Summaryپوختە

  • To decimal from any base: digit × place value for every digit, then add. Place values are powers of the base, r0=1r^0 = 1 just left of the point and negative powers after it.
  • Binary: add the place values of the 1 bits (8,4,2,1,12,14,18,116,…8, 4, 2, 1, \tfrac{1}{2}, \tfrac{1}{4}, \tfrac{1}{8}, \tfrac{1}{16}, \ldots). For long numbers, double and add from the left.
  • Octal: powers of 8 (1, 8, 64, 512 …). Hexadecimal: powers of 16 (1, 16, 256, 4096 …) and the letters A to F stand for 10 to 15.
  • Converting to decimal always gives a finite answer; check conversions by going back the other way.
  • بۆ لە هەر : بۆ هەر × ، پاشان کۆ بکەرەوە. ، r0=1r^0 = 1 ڕاستەوخۆ لای چەپی خاڵەکە و سالب دوای ئەو.
  • : 1ـەکان کۆ بکەرەوە (8,4,2,1,12,14,18,116,…8, 4, 2, 1, \tfrac{1}{2}, \tfrac{1}{4}, \tfrac{1}{8}, \tfrac{1}{16}, \ldots). بۆ ژمارەی درێژ، لە چەپەوە دوو هێندە بکە و زیاد بکە.
  • : ⁦8 (1⁩، 8، ⁦64⁩، ⁦512⁩ …). : ⁦16 (1⁩، ⁦16⁩، ⁦256⁩، ⁦4096⁩ …) و پیتەکانی A تا F واتە ⁦10⁩ تا ⁦15⁩.
  • گۆڕین بۆ هەمیشە وەڵامێکی کۆتاییدار دەدات؛ گۆڕینەکان بە گەڕانەوە بە ئاراستەکەی تر بپشکنە.
Review questionsپرسیارەکانی پێداچوونەوە
What is (11111111)2(11111111)_2 in decimal?(11111111)2(11111111)_2 بە دەیی چەندە؟

255: all eight place values, 128+64+32+16+8+4+2+1=255128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255, or 28−12^8 - 1.

⁦255⁩: هەموو هەشت ، 128+64+32+16+8+4+2+1=255128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255، یان 28−12^8 - 1.

What is (0.1)2(0.1)_2 in decimal, and what is (0.1)16(0.1)_{16}?(0.1)2(0.1)_2 بە دەیی چەندە و (0.1)16(0.1)_{16} چەندە؟

(0.1)2=12=0.5(0.1)_2 = \tfrac{1}{2} = 0.5 and (0.1)16=116=0.0625(0.1)_{16} = \tfrac{1}{16} = 0.0625.

(0.1)2=12=0.5(0.1)_2 = \tfrac{1}{2} = 0.5 و (0.1)16=116=0.0625(0.1)_{16} = \tfrac{1}{16} = 0.0625.

Why is FF the largest two-digit hex number, and what is it in decimal?بۆچی FF گەورەترین ژمارەی دوو تاکژمارەیی شانزەییە و بە دەیی چەندە؟

F is the largest hex digit: 15×16+15=25515 \times 16 + 15 = 255 — the same as eight 1 bits, because one hex digit is 4 bits.

F گەورەترین : 15×16+15=25515 \times 16 + 15 = 255 — هەمان هەشت 1، چونکە یەک 4 .

Videoڤیدیۆ

Watch a videoسەیری ڤیدیۆیەک بکە

A video that viewers liked a lot and praised in their comments, chosen for this lesson.ڤیدیۆیەک کە بینەران زۆریان پێ خۆش بووە و لە کۆمێنتەکانیاندا ستایشیان کردووە، بۆ ئەم وانەیە هەڵبژێردراوە.

Binary to decimal kurdish 2 چۆنیەتی گۆڕینی باینەری بۆ دیسیمەڵBLUE SOFT · Kurdish (Sorani)کوردی (سۆرانی) · 24K viewsبینین · 506 likesلایک

Kurdish: binary to decimal by writing the place values 1, 2, 4, 8 … over the bits and adding where there is a 1.

بە کوردی: گۆڕینی بۆ بە نووسینی 1، 2، 4، 8 … لەسەر و کۆکردنەوەیان لە هەر شوێنێک 1 هەبێت.

Kurdish whiteboard lesson (BLUE SOFT series no. 2). Shows the lesson's one method — digit × place value — for binary.

وانەیەکی کوردی لەسەر تەختە (زنجیرەی ⁦BLUE SOFT⁩، ژمارە ⁦2⁩). هەمان ڕێگای وانەکە بۆ پیشان دەدات: × .

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

Binary, Octal and Hex Shortcutsڕێگا کورتەکانی دووانی، هەشتی و شانزەیی

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.