메뉴 여닫기
환경 설정 메뉴 여닫기
개인 메뉴 여닫기
로그인하지 않음
지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

진법: 두 판 사이의 차이

noriwiki
Pinkgo (토론 | 기여)
편집 요약 없음
Pinkgo (토론 | 기여)
편집 요약 없음
9번째 줄: 9번째 줄:
<math>7642_10 = 7 \times 10^3 + 6 \times 10^2 + 4 \times 10^1 + 2</math>
<math>7642_10 = 7 \times 10^3 + 6 \times 10^2 + 4 \times 10^1 + 2</math>


<math>101111_2 = 1 \times 2^5 + 1 \ times 2^3 + 1 \times 2^2 + 1 \times 2^1 + 1 = 47_10</math>
<math>101111_2 = 1 \times 2^5 + 1 \times 2^3 + 1 \times 2^2 + 1 \times 2^1 + 1 = 47_10</math>


<math>A2F_16 = 10 \times 16^2 + 2 \ times 16^1 + 15 = 2607_10</math>
<math>A2F_16 = 10 \times 16^2 + 2 \times 16^1 + 15 = 2607_10</math>


2진법과 16진법간의 변환은 매우 간단하고 직접적이다.
2진법과 16진법간의 변환은 매우 간단하고 직접적이다.

2025년 3월 11일 (화) 04:42 판

개요

진법(Number System)이란 숫자를 이용해 수를 셀 때, 자릿수가 올라가는 단위를 기준으로 하는 셈법의 총칭을 의미한다.

[math]\displaystyle{ (a_{n-1}a_{n-2}...a-1a_0) = a_{n-1}r^{n-1} + a_{n-2}r^{n-2} + ... + a_1r^ + a_0 }[/math]

위와 같은 식은 [math]\displaystyle{ 0\le a_i\lt r }[/math]을 만족할 때 임의의 정수 r진법을 나타내는 식이다.

예시

[math]\displaystyle{ 7642_10 = 7 \times 10^3 + 6 \times 10^2 + 4 \times 10^1 + 2 }[/math]

[math]\displaystyle{ 101111_2 = 1 \times 2^5 + 1 \times 2^3 + 1 \times 2^2 + 1 \times 2^1 + 1 = 47_10 }[/math]

[math]\displaystyle{ A2F_16 = 10 \times 16^2 + 2 \times 16^1 + 15 = 2607_10 }[/math]

2진법과 16진법간의 변환은 매우 간단하고 직접적이다.