1, C # Basic finishing (method of conversion)

Source: Internet
Author: User

In-process binary conversion to decimal (method of adding weights)

110101 =1*2^5+1*2^4+0*2^3+1*2^2+0*2^1+1*2^0

1, write 2

2. Index (right to left)

3, multiply coefficient (one by one corresponds)

4. Add

Decimal to Binary (in addition to the right to take the remainder)

The remainder is taken from bottom to top, except 2 to quotient 0

Simple method: ... 8421

Hexadecimal expression

0123456789ABCDEF

octal, hexadecimal and decimal conversions with binary and decimal

Octal representation method o253, hexadecimal representation method ox11

Binary turn octal

ex.11101101 =011 (0*2^2+1*2^1+1*2^0) +101 (1*2^2+0*2^1+1*2^0) +101 (1*2^2+0*2^1+1*2^0)

=o355

1, from right to left three bit a group, not enough to fill 0

2, calculate the value of each group

3. In the order of grouping from left to right

Octal binary to binary: Inverse/divided by 2

Binary Turn hex

ex.11101101 =1110 (1*2^3+1*2^2+1*2^1+0*2^0) +1101 (1*2^3+1*2^2+0*2^1+1*2^0)

=oxed

1, from right to left four bit a group, not enough to fill 0

2, calculate the value of each group

3. In the order of grouping from left to right

Hex Turn binary: Inverse/divided by 2

1, C # Basic finishing (method of conversion)

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.