Konverter-Tool

Enter a decimal number. Choose between unsigned and signed (two's complement) interpretation. The bit size affects how negative numbers are represented.

Bits:

0

Type:

Unsigned

Binäre Darstellung:

Hexadezimale Darstellung:

Über Zahlensysteme

Dezimalsystem

Das Dezimalsystem ist ein Zahlensystem zur Basis 10, das zehn verschiedene Symbole verwendet: 0, 1, 2, 3, 4, 5, 6, 7, 8 und 9. Es ist das am häufigsten verwendete Zahlensystem im Alltag.

Oktalsystems

The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right).

Dezimalzahl in Oktal Tabelle

Decimal Octal Decimal Octal
0 0 8 10
1 1 9 11
2 2 10 12
3 3 11 13
4 4 12 14
5 5 13 15
6 6 14 16
7 7 15 17

Komplement

Zwei ist eine mathematische Operation, die zur Darstellung negativer Zahlen in binären Systemen 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