변환기 도구
Enter a decimal number. Choose between unsigned and signed (two's complement) interpretation. Select the bit size to format the output correctly.
Bits:
0
Type:
Unsigned
이진 표현:
숫자 체계 정보
십진법
십진법은 0, 1, 2, 3, 4, 5, 6, 7, 8, 9의 10개 기호를 사용하는 base-10 번호 체계입니다. 일상 생활에서 가장 일반적으로 사용되는 숫자 체계입니다.
16진법
The hexadecimal system is a base-16 numbering system that uses 16 distinct symbols. These symbols are 0-9 to represent values zero to nine, and A-F (or a-f) to represent values ten to fifteen.
Decimal에서 Hexadecimal 변환 테이블
| Decimal | Hexadecimal | Decimal | Hexadecimal |
|---|---|---|---|
| 0 | 0 | 8 | 8 |
| 1 | 1 | 9 | 9 |
| 2 | 2 | 10 | A |
| 3 | 3 | 11 | B |
| 4 | 4 | 12 | C |
| 5 | 5 | 13 | D |
| 6 | 6 | 14 | E |
| 7 | 7 | 15 | F |
2의 보수
2의 보수는 이진 시스템에서 음수를 나타내는 데 사용되는 수학 연산입니다. 덧셈 및 뺄셈과 같은 산술 연산을 단순화하기 때문에 컴퓨팅에 널리 사용됩니다.
양수를 2의 보수에서 음수로 변환하려면:
- 숫자를 이진수로 변환합니다.
- Invert all the bits (change 0 to 1 and 1 to 0).
- 반전 결과에 1을 더합니다.
음수 2의 보수 번호를 다시 10진수로 변환하려면:
- 모든 비트를 반전시킵니다.
- 반전 결과에 1을 더합니다.
- 결과를 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)