Numeral System¶
컴퓨터에서의 Number Representation(숫자) 표현은 수체계 (진법 시스템)에 대한 이해를 요구함.
(특히 2진수 체계) Internal Representation 에서 중요.
Numeral System (수 체계, 진법)¶
Numeral System은
- Base-
?
System 또는 Radix-?
System 이라고 불리며, ?
는base
에 해당하는 숫자가 온다.
Numeral system에서는
- 같은 digit(숫자기호)이라도 어느 자리에 놓여있느냐에 따라 크기가 다르며,
- 해당 자리에 따라 다른 크기는
Base
(orRadix
)에 의해 결정된다.
Radix
는 라틴어로 뿌리라는 뜻임.Base
와 함께 밑수를 의미하며 주로 이론서에 등장.
Base R System ( 진법 )¶
은 Base
를 의미(정확히는 Radix
)하며 다음과 같이 표기된다.
- 중간의 빨간색의 dot가 소수점임.
위의 값(value)는 다음과 같다.
주로 사용되는 것들¶
- : Base-10 system, Decimal (number) system, 10진수 ,
Dec
- : Base-16 system, Hexadecimal (number) system, 16진수
Hex
/0x
- - : Base-8 system, Octal (number) system, 8진수
Oct
/0o
- - : Base-2 systm, Binary (number) system, 2진수
Bin
/0b
-
Python Example¶
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.