변환기 도구

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

이진 표현:

16진수 표현:

숫자 체계 정보

십진법

십진법은 0, 1, 2, 3, 4, 5, 6, 7, 8, 9의 10개 기호를 사용하는 base-10 번호 체계입니다. 일상 생활에서 가장 일반적으로 사용되는 숫자 체계입니다.

옥탈 시스템

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

십진수에서 8진수로의 변환표

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

2의 보수

2의 보수는 이진 시스템에서 음수를 나타내는 데 사용되는 수학 연산입니다. 덧셈 및 뺄셈과 같은 산술 연산을 단순화하기 때문에 컴퓨팅에 널리 사용됩니다.

양수를 2의 보수에서 음수로 변환하려면:

  1. 숫자를 이진수로 변환합니다.
  2. Invert all the bits (change 0 to 1 and 1 to 0).
  3. 반전 결과에 1을 더합니다.

음수 2의 보수 번호를 다시 10진수로 변환하려면:

  1. 모든 비트를 반전시킵니다.
  2. 반전 결과에 1을 더합니다.
  3. 결과를 10진수로 변환하고 앞에 음수 부호를 붙입니다.

예: 8비트 Two의 보수

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)

8비트 2의 보수 범위:

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

Related Tools