Strumento di conversione

0 characters

Enter an octal number (0-7). The '0o' prefix is optional. Choose between unsigned and signed (two's complement) interpretation.

Bits:

0

Type:

Unsigned

Rappresentazione binaria:

Rappresentazione esadecimale:

Informazioni sui sistemi numerici

Sistema ottale

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).

Tabella di conversione da ottale a decimale

Octal Decimal Octal Decimal
0 0 4 4
1 1 5 5
2 2 6 6
3 3 7 7

Sistema decimale

Il sistema decimale è un sistema di numerazione in base 10 che utilizza dieci simboli distinti: 0, 1, 2, 3, 4, 5, 6, 7, 8 e 9. È il sistema numerico più comunemente usato nella vita di tutti i giorni.

Complemento a due

Il complemento di due è un'operazione matematica utilizzata per rappresentare i numeri negativi nei sistemi binari. È ampiamente utilizzato in informatica perché semplifica le operazioni aritmetiche come l'addizione e la sottrazione.

Per convertire un numero positivo nella sua controparte negativa nel complemento a due:

  1. Converti il numero in binario.
  2. Invert all the bits (change 0 to 1 and 1 to 0).
  3. Aggiungere 1 al risultato dell'inversione.

Per convertire il numero di complemento di un due negativo in decimale:

  1. Inverti tutti i bit.
  2. Aggiungere 1 al risultato dell'inversione.
  3. Converte il risultato in decimale e lo precede con un segno negativo.

Esempio: complemento a due a 8 bit

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)

Intervallo per il complemento a due a 8 bit:

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

Related Tools