Verktyg för omvandlare
Enter an octal number (0-7). The '0o' prefix is optional. Choose between unsigned and signed (two's complement) interpretation.
Bits:
0
Type:
Unsigned
Binär representation:
Hexadecimal Representation:
Om talsystem
Oktalt system
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).
Oktal till decimal omvandlingstabell
| Octal | Decimal | Octal | Decimal |
|---|---|---|---|
| 0 | 0 | 4 | 4 |
| 1 | 1 | 5 | 5 |
| 2 | 2 | 6 | 6 |
| 3 | 3 | 7 | 7 |
Decimalsystem
Decimalsystemet är ett bas-10-numreringssystem som använder tio distinkta symboler: 0, 1, 2, 3, 4, 5, 6, 7, 8 och 9. Det är det mest använda talsystemet i vardagen.
Tvås komplement
Tvåkomplement är en matematisk operation som används för att representera negativa tal i binära system. Det används ofta inom databehandling eftersom det förenklar aritmetiska operationer som addition och subtraktion.
Så här konverterar du ett positivt tal till dess negativa motsvarighet i två komplement:
- Konvertera talet till binärt.
- Invert all the bits (change 0 to 1 and 1 to 0).
- Lägg till 1 till resultatet av inversionen.
Så här konverterar du ett negativt tvåkomplementtal tillbaka till decimaltal:
- Invertera alla bitar.
- Lägg till 1 till resultatet av inversionen.
- Konvertera resultatet till decimal och prefixa det med ett negativt tecken.
Exempel: 8-bitars Two's Supplement
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)
Omfång för 8-bitars Two's Supplement:
-128 (1000 0000) to 127 (0111 1111)
Related Tools
Oktal till Decimal
Konvertera oktala tal till decimal utan ansträngning
Oktal till Hex
Konvertera oktala tal till hexadecimala utan ansträngning
Text till ASCII
Konvertera text till ASCII-kod utan ansträngning
Skapa vacker CSS-textgradient utan ansträngning
Skapa fantastiska övertoningstexteffekter för din webbplats
CRC-16 Hash-kalkylator
Generera CRC-16-kontrollsummor snabbt och enkelt
HEX till HSV
Konvertera färger mellan hexadecimala färgmodeller och HSV-färgmodeller (Hue, Saturation, Value) med förhandsgranskning i realtid.