コンバータツール

0 characters

Enter a hexadecimal number (0-9, A-F). The '0x' prefix is optional. Choose between unsigned and signed (two's complement) interpretation.

Bits:

0

Type:

Unsigned

バイナリ表現:

番号システムについて

16進法

The hexadecimal system is a base-16 numbering system that uses 16 distinct symbols. These symbols are 0-9 to represent values zero to nine, and A-F (or a-f) to represent values ten to fifteen.

16進数から10進数への変換テーブル

Hexadecimal Decimal Hexadecimal Decimal
0 0 8 8
1 1 9 9
2 2 A 10
3 3 B 11
4 4 C 12
5 5 D 13
6 6 E 14
7 7 F 15

2 の補数

2 の補数は、バイナリ システムで負の数を表すために使用される数学演算です。これは、加算や減算などの算術演算を簡略化するため、コンピューティングで広く使用されています。

正の数を 2 の補数で負の数に変換するには、次のようにします。

  1. 数値をバイナリに変換します。
  2. Invert all the bits (change 0 to 1 and 1 to 0).
  3. 反転の結果に 1 を加算します。

負の 2 の補数を 10 進数に戻すには:

  1. すべてのビットを反転します。
  2. 反転の結果に 1 を加算します。
  3. 結果を 10 進数に変換し、負の符号をプレフィックスとして付けます。

例: 8 ビット 2 の補数

Positive Number (5):

0000 0101 (binary)

Negative Number (-5):

1111 1010 (inverted bits of 5)

1111 1011 (add 1 = two's complement representation of -5)

8ビット2の補数の範囲:

-128 (1000 0000) to 127 (0111 1111)

Related Tools