Conversion between the binaries

Source: Internet
Author: User

Conversion between the binaries

decimal-to-binary method: Use decimal data to divide by 2 continuously until the quotient is 0. The remainder from bottom to top is the corresponding binary.

Binary to decimal: each bit of binary is multiplied by 2 n times, N starts at 0, increments by 1 each time, and then the data of each part is added together.

Octal: Every three binary and record one digit per three binary for one bit 001,111 (binary)--->1,7 (octal)

Octal and decimal conversions are the same as in binary

Hex: Four bits is a hexadecimal data ibid.

Conversion between the binaries

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.