10進数から2進数へのオンライン変換ツール
バイナリ2
進数16
8進数8
について10進数から2進数へのオンライン変換ツール:
このオンライン10進数 - 2進数変換ツールを使用すると、10進数を2進数に変換できます。
10進数:
(アラビア語としても知られている)10進数システムは、 (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) )を含む10文字を持ちます.
バイナリ:
バイナリは2文字(0, 1)のみで(0, 1) 4ビットのバイナリ文字は1桁の16進数を表し、3桁のバイナリ文字は1桁の8進数を表すことができます.
10進数から2進数に変換する方法は?
ステップ1:10進数を2で割り、整数の商と余りを求めます.
手順2:最初の手順の残りの部分をバイナリ文字に変換します.
ステップ3:最初のステップの整数商で除算を続け、0になるまでステップ1を繰り返します.
例1:10進数 "13"が2進数に変換されます(結果は "1101"です).
| 各10進数を2で割ります | 整数商 | 剰余(10元) | 剰余(2元) | 場所 |
|---|---|---|---|---|
| 13/2 | 6 | 1 | 1 | 0 |
| 6/2 | 3 | 0 | 0 | 1 |
| 3/2 | 1 | 1 | 1 | 2 |
| 1/2 | 0 | 1 | 1 | 3 |
10進数から2進数への変換表:
| 10進数 | バイナリ | 10進数 | バイナリ |
|---|---|---|---|
| 1 | 1 | 21 | 10101 |
| 2 | 10 | 22 | 10110 |
| 11 | 3 | 23 | 10111 |
| 4 | 100 | 24 | 11000 |
| 5 | 101 | 25 | 11001 |
| 6 | 110 | 26 | 11010 |
| 7 | 111 | 27 | 11011 |
| 8 | 1000 | 28 | 11100 |
| 9 | 1001 | 29 | 11101 |
| 10 | 1010 | 30 | 11110 |
| 11 | 1011 | 31 | 11111 |
| 12 | 1100 | 32 | 100000 |
| 13 | 1101 | 33 | 100001 |
| 14 | 1110 | 34 | 100010 |
| 15 | 1111 | 35 | 100011 |
| 16 | 10000 | 36 | 100100 |
| 17 | 10001 | 37 | 100101 |
| 18 | 10010 | 38 | 100110 |
| 19 | 10011 | 39 | 100111 |
| 20 | 10100 | 40 | 101000 |
リンク:
ウィキペディア(バイナリ): https://en.wikipedia.org/wiki/Binary_number
ウィキペディア(10進数): https://en.wikipedia.org/wiki/Decimal
Pythonでの10進数から2進数への変換:
def decimal_to_binary(decimal_str):
decimal_number = int(decimal_str, 10)
binary_number = bin(decimal_number)
return binary_number
decimal_input = '2014'
binary_output = decimal_to_binary(decimal_input)
print('binary result is:{0}'.format(binary_output))
-------------------
binary result is:0b11111011110
Javaでの10進数から2進数への変換:
public class NumberConvertManager {
public static String decimal_to_binary(String decimal_str) {
return Integer.toBinaryString(Integer.parseInt(decimal_str));
}
public static void main(String[] args) {
String decimal_input = "2014";
String binary_output = decimal_to_binary(decimal_input);
System.out.println("binary result is:" + binary_output);
}
}
-------------------
binary result is:11111011110
関連ツール
16進数から10進数への変換
10進数から16進数への変換
8進数から10進数への変換
10進数から8進数への変換
2進数から10進数への変換
10進数から2進数への変換
ASCIIルックアップテーブル
16進数からASCII文字列への変換
ASCIIストリングから16進数への変換
小数から小数への変換
分数から分数への変換
10進数変換に対するパーセント
小数からパーセントへの変換
分数変換に対する割合
パーセントコンバージョンへのスコア付け
16進カラーからRGBカラーへの変換
RGBカラーから16進カラーへの変換
16進カラーからRGBAカラーへの変換
RGBAカラーから16進カラーへの変換
ローマ数字比較表1-1000
ローマ数字からアラビア数字への変換
アラビア数字からローマ数字への変換