Chapter 6 binary, octal, and hexadecimal
6.1 why do we need octal and hexadecimal?
6.2 decimal number conversion to decimal number
6.2.1 convert binary to decimal
6.2.2 convert octal to decimal
6.2.3 expression of the octal number
6.2.4 use of Octal
6.1
Why do we need octal and hexadecimal?
In programming, we usually use 10 hexadecimal notation ...... C/C ++ is a high-level language.
For example:
Int A = 100, B = 99;
However, because the representation of data in a computer exists in
In programming, we usually use 10 hexadecimal notation ...... C/C ++ is a high-level language.
For example:
Int A = 100, B = 99;
However, because the representation of data in a computer exists in binary format, sometimes binary can be used to solve
BinaryBinary is a kind of system widely used in computing. Binary data is a number represented by 0 and 12 digits. Its base is 2, the rounding rule is "every two in one", the borrow rule is "borrowing one as two", which was found by the 18th century
1. Binary number, octal number, hexadecimal decimal number
There is a formula: binary number, octal number, hexadecimal number of the numbers of the number of each of the respective cardinality of the (N-1) of the second party, and the sum is the
Computer Basics: Binary, octal, decimal, hex 2006-11-29 20:23
one or 10 binary number The decimal number is the most widely used counting system in daily life. The symbols that make up the decimal number have a total of 10 symbols such
Decimal to binary, in addition to 2 OperationsDecimal 6 to binary is (note from right to left to write, use a formula from bottom to top)Binary to decimal, multiply by 2 procedureBinary decimal 0*2 1 - Time Square of 0 Square +1*2 +1*2 's 2 -
6.1 why do we need octal and hexadecimal?
In programming, we usually use 10 hexadecimal notation ...... C/C ++ is a high-level language.
For example:
Int A = 100, B = 99;
However, because the representation of data in a computer exists in binary
(a) the numberingThe computer is binary, because the binary has simple operation, easy to achieve and reliable, for the logical design provides a favorable way to save equipment and other advantages, in order to facilitate the description, but also
5.8. hexadecimal. 2
5.8.1 hexadecimal
DescriptionIn hexadecimal notation, we will first ask: there are only 10 Arabic numerals in total: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9, how can we express the concept of "every 16 to 1? The method is to use English
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.