변환기 도구

0 bits

Enter a binary number (spaces are allowed for readability). Choose between unsigned and signed (two's complement) interpretation.

Bits:

0

Type:

Unsigned

이 도구에 대해

바이너리에서 십진수로 변환하는 변환기는 이진수를 십진수로 변환하는 도구입니다. 각 이진수는 부호 없는 숫자 또는 2의 보수 표현을 사용하여 부호 있는 숫자로 해석됩니다.

작동 원리

  1. The input binary string is validated to ensure it contains only 0s and 1s (spaces are allowed for readability).
  2. The user can choose between unsigned and signed (two's complement) interpretation.
  3. For unsigned interpretation, each bit's value is calculated based on its position (2^position) and summed up.
  4. For signed interpretation (two's complement), if the leftmost bit is 1, the number is negative. The two's complement conversion is applied to determine the magnitude.
  5. 결과 10진수 값이 표시됩니다.

일반적인 사용 사례

  • 컴퓨터 과학 교육:컴퓨터에서 이진수가 10진수 값으로 해석되는 방법을 이해합니다.
  • 디지털 전자 제품:하드웨어의 이진 신호를 사람이 읽을 수 있는 10진수 값으로 변환합니다.
  • Programming:파일 또는 네트워크 소켓에서 읽은 이진 데이터를 10진수로 해석합니다.
  • 데이터 분석:분석을 위해 바이너리로 인코딩된 데이터를 10진수 형식으로 변환합니다.
  • Cryptography:암호화 계산을 위해 바이너리로 인코딩된 키 또는 값을 10진수로 변환합니다.

바이너리 시스템 기초

이진 시스템은 숫자를 나타내기 위해 0과 1의 두 자리 숫자만 사용합니다. 이진수의 각 숫자를 비트라고 합니다. 이진수는 음수에 대한 2의 보수와 같은 다양한 방법을 사용하여 양수와 음수를 모두 나타내는 데 사용할 수 있습니다.

Binary to Decimal 변환 예제

Binary 부호 없는 10진수 Signed Decimal (Two's Complement)
0000 0 0
0001 1 1
0101 5 5
1000 8 -8
1111 15 -1
11111111 255 -1

Related Tools