Alat Konverter

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

Representasi binar:

Representasi heksadesimal:

Babagan Sistem Nomer

Sistem Oktal

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

Tabel Konversi Oktal menyang Desimal

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

Sistem Desimal

Sistem desimal minangka sistem penomoran basis-10 sing nggunakake sepuluh simbol sing béda: 0, 1, 2, 3, 4, 5, 6, 7, 8, lan 9. Iku sistem wilangan sing paling umum digunakake ing saben dinten.

Komplemen Loro

Komplemen Two minangka operasi matematika sing digunakake kanggo makili angka negatif ing sistem biner. Iki digunakake akeh ing komputasi amarga nyederhanakake operasi aritmetika kayata tambahan lan pengurangan.

Kanggo ngowahi angka positif dadi pasangan negatif ing komplemen loro:

  1. Ngonversi nomer menyang binar.
  2. Invert all the bits (change 0 to 1 and 1 to 0).
  3. Tambah 1 kanggo asil inversi.

Kanggo ngowahi nomer komplemen loro negatif bali menyang desimal:

  1. Walik kabeh bit.
  2. Tambah 1 kanggo asil inversi.
  3. Ngonversi asil dadi desimal lan prefiks kanthi tandha negatif.

Tuladha: 8-bit Two's Complement

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)

Range kanggo 8-bit Two's Complement:

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

Related Tools