Methods and techniques for converting into a system

Source: Internet
Author: User

Binary conversion: binary, decimal octal hexadecimal
One, binary → decimal conversion:
1. Write two
2. Mark Index, left to right, zero-based.
3. Multiply coefficients, each corresponding
4. Add

Example: Binary number 1101 is converted to decimal
The first step:
2 2 2 2
Part II:
2^3 2^2 2^1 2^0
Step Three:
1*2^3 1*2^2 0*2^1 1*2^0
Fourth Step:
1*2^3 + 1*2^2 + 0*2^1 + 1*2^0=13

Port algorithm: 8421-Port algorithm

Second, decimal → binary (except 2 redundancy)

1. The remainder of each step is recorded by the vertical decimal number except 2.
2. In addition to the quotient 0, the remainder is read from the bottom to the binary number.


Three, octal turn decimal

Four, decimal turn octal

V, hexadecimal to decimal

Six, decimal to hexadecimal

Seven, binary turn octal
(three-bit group)

octal to binary binary
(1 split 3)

Nine-binary hex
(four-bit group)

Ten, hex turn binary

(1 split 4)

(hexadecimal number is 1.2.3.4.5.6.7.8.9.A.B.C.D.E.F)

Methods and techniques for converting into a system

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.