Doing the conversion from binary into decimal is easy:
從二進位轉換為十進位的做法很簡單:
- Start by making a table with all of the 2exponent values listed, for exponent values 0 through 7, as shown in the first row of the following table.首先建立一個表格,列出指數值 0 到 7 所對應的所有 2指數 值,如下表第一列所示。
- Add a row that lists the decimal value of each of these exponents, as shown in the second row; these are the positional or place values (and are also called placeholders).新增一列,列出每個指數所對應的十進位值,如第二列所示;這些是位置值(也稱為位值)。
- Write out the given bit sequence in the table, as shown in the third row for the example binary number 10111001.在表格中寫出指定的位元序列,如第三列所示,範例二進位數字為 10111001。
- For each bit, multiply the place value by the bit value, as shown in the fourth row. Notice that where the bit value is 0, the answer is 0, and where the bit value is 1, the answer is the place value.針對每一個位元,將位值乘以該位元的值,如第四列所示。請注意,當位元值為 0 時,結果為 0;當位元值為 1 時,結果就是該位值本身。
- Finally, add all of these values together; the result is the decimal value of the binary number. In this example, the decimal value of the binary number 10111001 is 185.最後,將這些值全部加總;結果就是該二進位數字的十進位值。在此範例中,二進位數字 10111001 的十進位值為 185。
The minimum value of an 8-bit binary number is 00000000, which in decimal equals 0. The maximum value of an 8-bit binary number is 11111111, which in decimal equals 255. If you have a number that is larger than 255, it cannot be written with 8 bits. For each of the decimal numbers an IPv4 address must be a number between 0 and 255.
8 位元二進位數字的最小值是 00000000,換算成十進位等於 0;最大值是 11111111,換算成十進位等於 255。若某個數字大於 255,就無法用 8 位元表示。IPv4 位址中的每個十進位數字都必須介於 0 到 255 之間。
Which option is the decimal representation of 10000000?10000000 的十進位表示是下列哪一個選項?
What is the decimal equivalent of the binary number 11100000?二進位數字 11100000 的十進位等值是多少?