2014.12.20 Learning-in-transition

Source: Internet
Author: User

Binary conversion: Binary, octal, decimal, hexadecimal.

(i) Binary to decimal:

1. Write 2

2. Index, right-to-left, marking from 0

3. Multiply coefficients, each corresponding.

4. Add.

Example: binary number 1101 to decimal number *

1.2 2 2 2

2.2^3 2^2 2^1 2^0

3.1*2^3 1*2^2 0*2^1 1*2^0

4.1*2^3+1*2^2+0*2^1+1*2^0=13

(b) Decimal turn binary: except 2

1. Using vertical, the decimal number is followed by 2 and the remainder of each step is recorded.

2. In addition to the quotient 0, the remainder is recorded from bottom to top, which is a binary number.

(c) octal to decimal: O denotes octal similar to binary o52=42

(four) decimal turn octal: o72=110

(v) hexadecimal to decimal: 123456789ABCDEF (a=10,b=11,c=12,d=13,e=14,f=15) ox means hexadecimal similar to binary ox72=48 ox108=6c

(vi) Decimal turn 16 binary: similar to binary

(vii) binary turn octal: three-bit group

(eight) octal turn binary: Each number is split into three bits

(ix) Binary turn 16 binary: four-bit group

(10) Hex turn binary: Each number is split into four bits

(11) Octal to 16-binary: octal to binary and hex, octal to decimal, hex

(12) hexadecimal to octal: hexadecimal to binary and then octal, hexadecimal to decimal, then octal

2014.12.20 Learning-in-transition

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.