My path to Assembly Learning (1)-hexadecimal conversion

Source: Internet
Author: User

Understanding of data:

100 is not necessarily 100! It can be:

Counting System:

This figure is incorrect: 1*100 + 2*10 + 3 + 4*0.1 + 5*0.02

Binary-> decimal:

Decimal-> binary (except the 2 Method ):

 

Because the binary is too long, reading and writing is particularly troublesome and error-proneProgramStaff avoid using binary notation directly in program source files.

They use hexadecimal notation instead of binary. Why don't they use decimal notation?

The hexadecimal notation has two very good features:

. It is compact;

. Binary and hexadecimal conversion is very easy.

 

In hexadecimal notation, 10 numbers are used. Similarly, in hexadecimal notation, 16 numbers are used, but only 0-9 is used. What should I do if the number is insufficient?

Introduction of a B c d e f Represents 10 11 12 13 14 15 respectively

Hexadecimal-> decimal:

Hexadecimal-> binary:

Octal indicates that early computer systems are very common, but they are out of our computer systems.

Octal is mainly applicable to the current 12-36-bit computer system (or other computer systems with multiples of 3)

For a computer system with a power of 2 (8 16 32 or 64-bit computer system), the representation is out of place.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.