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
Binary, octal, decimal, hexadecimal conversion, binary hexadecimal1. Preface
The most boring thing during each holiday is that you don't want to get up or eat. Founder just doesn't want to move, lie in bed, watch the mobile phone, and brush QQ space
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
1. PrefaceEvery time the most boring thing, is not want to get up, do not want to eat, founder is not want to move, lying in bed, looking at the mobile phone, bored brush QQ space, although now very few people play QQ space, but this habit has been
Electronic computers can process information and processing at very high speeds, including data processing and processing, and have a great capacity for storing data. Data in the computer in the physical state of the device, using a binary digital
C # its built-in X-in conversion function is as follows:
// Convert decimal to binaryConsole. WriteLine (Convert. ToString (69, 2 ));// Convert decimal to octalConsole. WriteLine (Convert. ToString (69, 8 ));// Convert decimal to hexadecimalConsole.
The original: The transformation between the binary systems The conversion between the binaries is as follows: By the way, there are 12 conversions in the system. Each of the 12 conversion methods is described below(1) binary into
As we all know, the memory address space is represented by hexadecimal data, such as 0x8049324. Why do we need to represent it in hexadecimal format? What is the significance of the hexadecimal system?
In programming, we usually use 10
MD5 using 16 binary message digestCategory: java_secruity2012-12-28 13:11 719 People read Comments (0) favorite reports Message digestBecause the data is represented in the computer and eventually in binary form, sometimes binary is used to
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.