الموضوع: Networking Basics عرض مشاركة مفردة
#14 InnerPeace Gold User تاريخ التّسجيل: Oct 2005 المشاركات: 315 Converting decimal numbers to 8-bit binary numbers

Converting decimal numbers to 8-bit binary numbers

This page will teach you how to convert decimal numbers to binary numbers.

Conversion exercise:

Use the example below to convert the decimal number 168 to a binary number:

128 is less than 168 so the left most bit in the binary number is a 1. 168 - 128 = 40.
64 is not less than or equal to 40 so the second bit from the left is a 0.
32 is less than 40 so the third bit from the left is a 1. 40 - 32 = 8.
16 is not less than or equal to 8 so the fourth bit from the left is a 0.
8 is equal to 8 so the fifth bit from the left is a 1. 8 - 8 = 0. Therefore, the bits to the right are all 0.

This example shows that the decimal number 168 is equal to the binary number 10101000.
__________________
لا تضلوا. لا زناة ولا عبدة اوثان ولا فاسقون ولا سارقون ولا طماعون ولا سيكرون يرثون ملكوت الله (1 كورنثوس 6: 9، 10)