1.2 Representation and storage of information
1.2.1 The number system
of a computer Each number system has a fixed basic symbol (called a number), and the values represented by the numbers in different positions are different.
In the digital system, r basic symbols (0, 1, 2, …, r-1) are used to represent the value, which is called the r base number, and r is called the base of the base, and each position in the number system The corresponding unit value is called bit weight.
1.2.2 Conversion of Carry Counting System
- Converting Decimal Numbers to R-based Numbers
Because of the different conversion methods for integers and decimals, when converting a decimal number to R-based numbers, you can convert the integer part and the decimal part respectively, and then add the results together.
(1) Converting a decimal integer to a base r number. In
summary, the method of converting a decimal integer to a base r number is to divide r and take the remainder: that is, keep dividing the decimal number by r and take the remainder &