HOW TO CONVERT DECIMAL TO BINARY
This video shows you how to convert a decimal number into a binary number by using the powers of two and dividing down until you have a full number. It uses examples to show how this is done practically and tells you what a binary number is.
Hi, I'm Peter Edwards from Blue Tutors. We teach children of all ages from primary school right through to degree level and we find the highest quality tutors. And today, I'm going to teach you some maths.
We're now going to look at converting a decimal number into a binary number. So, the first thing to do there is to understand what a binary number is. A binary number represents powers of two basically.
So the first digit represents two to the power of zero, so that can either be one or zero as can all of the digits. The second digit represents two to the power of one, the third two to the power of two, the fourth two to the power three, and so on. So we have one, two, four, eight, sixteen, thirty two, sixty four, and one hundred and forty eight.
And a binary number can represent any decimal number that you choose. So, we're going to look at a few examples, so we're going to try and convert twenty five into a binary number. The first thing we have to do is look at the leading digit of that binary number.
So seeing as twenty five is less than thirty two but greater than sixteen we know that the leading digit is going to be in this column here. So we're going to have a five digit binary number. What we're going to do is divide twenty five by sixteen which is one and we get a remainder of 9 and essentially then we just repeat the process.
So we look at where nine is, we're going to divide by eight. Nine divided by eight is again one and we have a remainder of one. In this case going down we look at four.
Now when we divide one by four we get zero again with a remainder of one. If we go down again, divide by two, zero, remainder one, and lastly, clearly when we divide by one we get the result of one. So we have our number here so this tells us that twenty five in decimal is equal to one one zero zero one in binary.
Okay, so now we're going to look at another example which is slightly more complicated. Again we need to decide on how many digits this number is going to have when we convert it into a binary number so a hundred and seven is greater than sixty four but less than one hundred and twenty eight so we're going to start by dividing a hundred and seven by sixty four. The result of that of course is one, and the remainder is forty three.
So we're now going to divide by thirty two, the result again is one and the remainder is nine, we divide that by sixteen and we get the result of zero with the remainder of nine. Divided by eight gets the result of one with a remainder of one. Divide that by four, also zero, remainder one.
Divide by two, a result of zero, remainder one, and finally dividing by one gives us a result of one. So we can see from this that a hundred and seven in decimal is equal to one zero one zero zero one in binary. And that is how you convert a decimal number into a binary number. .
วิธีการแปลงทศนิยมเพื่อไบนารี
วิดีโอนี้จะแสดงวิธีการแปลงเลขฐานสิบเป็นเลขฐานสองโดยใช้พลังของทั้งสองและแบ่งลงจนกว่าคุณจะได้เป็นจํานวนเต็ม จะใช้ตัวอย่างเพื่อแสดงให้เห็นว่านี้เป็น จริง และบอกคุณว่าตัวเลขไบนารี .
สวัสดีครับผม ปีเตอร์ เอ็ดเวิร์ด จากติวเตอร์สีฟ้าเราสอนให้เด็กทุกเพศทุกวัย ตั้งแต่ชั้นประถมจนถึงระดับปริญญา และเราพบสูงสุด ติวเตอร์คุณภาพ และวันนี้ ผมจะสอนคุณบางอย่างคณิตศาสตร์
ตอนนี้เรากำลังจะไปดูที่การแปลงเลขฐานสิบเป็นเลขฐานสอง ดังนั้น สิ่งแรกที่ต้องทำ มีการเข้าใจว่าเลขฐานสองคือ เป็นเลขฐานสองหมายถึงพลังแห่งสอง
โดยทั่วไปดังนั้น ตัวเลขแรก หมายถึง สองพลังของศูนย์ เพื่อให้สามารถเป็นหนึ่งหรือศูนย์เป็นสามารถทั้งหมดของตัวเลข ตัวเลขที่สองหมายถึงสองพลังแห่งหนึ่ง สามสองยกกำลัง สอง สี่ สองยกกำลังสาม และอื่น ๆ ดังนั้นเราจึงมี 1 , 2 , 4 , 8 , 16 , 32 , หกสิบสี่ หนึ่งร้อยสี่สิบแปด .
และหมายเลขไบนารีสามารถเป็นตัวแทนของจำนวนใด ๆที่คุณเลือก ดังนั้น เราต้องดูที่ตัวอย่าง ดังนั้นเราต้องพยายามแปลงยี่สิบห้าเป็นเลขฐานสอง สิ่งแรกที่เราต้องทำคือ ดูที่ตัวเลขชั้นนำในที่เลขฐานสอง .
เพื่อให้เห็นเป็นยี่สิบห้าน้อยกว่าสามสิบสอง แต่มากกว่า 16 เรารู้ว่าตัวเลขนำจะได้ในคอลัมน์นี้ค่ะ ดังนั้นเราจะมีห้าเลขฐานสองจำนวน สิ่งที่เราต้องทำคือแบ่งยี่สิบห้าสิบหกซึ่งเป็นหนึ่งและเราได้รับส่วนที่เหลือของ 9 หลัก แล้วเราก็ย้ำกระบวนการ .
เพื่อให้เราดูที่ เก้า เป็น เราก็จะหารด้วย 8เก้าหารด้วยแปดเป็นอีกหนึ่ง และเราก็มีอีกหนึ่ง ในกรณีนี้จะลง เราดูที่ 4 . . . . .
ตอนนี้เมื่อเราแบ่งทีละสี่ไปศูนย์อีกกับอีกหนึ่ง ถ้าเราลงไปอีก หารด้วย สอง ศูนย์ บวกหนึ่ง และสุดท้าย ชัดเจน เมื่อเราแบ่งโดยหนึ่งเราได้รับผลอย่างใดอย่างหนึ่งดังนั้น เราได้เบอร์เราเลย บอกเราว่ายี่สิบห้าทศนิยมเท่ากับหนึ่งหนึ่งศูนย์ศูนย์หนึ่งในไบนารี
โอเค ตอนนี้เรากำลังจะไปดูที่ตัวอย่างหนึ่งซึ่งเป็นเล็กน้อยซับซ้อนมากขึ้น .อีกครั้งที่เราต้องตัดสินใจกี่ตัวเลขจำนวนนี้จะได้เมื่อเราแปลงเป็นเลขฐานสองเพื่อให้หนึ่งร้อยเจ็ดมากกว่าหกสิบสี่ แต่น้อยกว่าหนึ่งร้อย และยี่สิบแปด ดังนั้นเราต้องเริ่มจากการแบ่งร้อยเจ็ดหกสิบสี่ ผลที่แน่นอนหนึ่ง และส่วนที่เหลือเป็นสี่สิบสาม
ดังนั้นตอนนี้เราจะแบ่งโดยสามสิบสองผลอีกหนึ่งและส่วนที่เหลือเป็นเก้า เราหารด้วย 16 และเราได้รับผลของศูนย์กับส่วนที่เหลือของเก้า หารด้วยแปดได้รับผลหนึ่งกับอีกหนึ่ง หารด้วยสี่ นอกจากนี้ ศูนย์ เหลือหนึ่ง
หารด้วยสอง ผลของศูนย์ , ส่วนที่เหลือ , และในที่สุดก็แบ่งให้เราโดยหนึ่งผลหนึ่งดังนั้น เราสามารถดูได้จาก ที่ ร้อยเจ็ดสิบเท่ากับหนึ่งศูนย์หนึ่งศูนย์ศูนย์หนึ่งในเลขฐานสอง และนั่นคือวิธีการที่คุณแปลงเลขฐานสิบเป็นเลขฐานสอง .
การแปล กรุณารอสักครู่..
