Konverter-Tool

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

Binäre Darstellung:

Über Zahlensysteme

Hexadezimalsystem Hexadezimales System

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.

Hexadezimal in Dezimalrechnung Tabelle

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

Zwei Das

Komplement Zwei ist eine mathematische Operation, die zur Darstellung negativer Zahlen in Doppelsternsystemen verwendet wird. Es wird häufig in der Informatik verwendet, da es arithmetische Operationen wie Addition und Subtraktion vereinfacht.

So wandeln Sie eine positive Zahl in ihr negatives Gegenstück im Zweierkomplement um:

  1. Wandeln Sie die Zahl in ein Binärsystem um.
  2. Invert all the bits (change 0 to 1 and 1 to 0).
  3. Addieren Sie 1 zum Ergebnis der Inversion.

Um die Komplementzahl einer negativen Zwei wieder in dezimal umzuwandeln:

  1. Invertiere alle Bits.
  2. Addieren Sie 1 zum Ergebnis der Inversion.
  3. Konvertieren Sie das Ergebnis in eine Dezimalzahl und stellen Sie ihm ein negatives Vorzeichen voran.

Beispiel: 8-Bit-Zweierkomplementbereich

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)

für 8-Bit-Zweierkomplement:

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

Related Tools