ios-binary, decimal, hexadecimal reciprocal conversions

Source: Internet
Author: User

Binary into decimal 1001 1010 = 1*2^7+0*2^6+0*2^5+1*2^4+1*2^3+0*2^2+1*2^1+0*2^0

Binary hexadecimal 0011 1101 1011 = 3db

Binary into octal 1010 1100 = 010 101 100 = 254

Decimal into binary

2^0 = 1,2^1 = 2, 2^2 = 4,2^3 = 8,2^4 = 16,2^5 = 32,2^6 = 64, 2^7 = 128,2^8 = 256,2^9 = 512,2^10 = 1024;

254 = 128 + 64 + 32 + 16 + 8 +4 +2

= 2^7 + 2^6 + 2^5 + 2^4 + 2^3 +2^2+ 2^1

= 1111 1110

octal into binary efa9 = 1110 1111 1010 1001

hexadecimal to binary 456 = 100 101 110 = 1 0010 1110

octal into decimal 123 = 1*8^2 + 2*8^1+3*8^0 = 64+16+3 = 83;

Decimal into octal

8^0 = 1,8^1 = 8,8^2 = 64,8^3 = 512;

543 = 512 + 24 + 7 = 1*8^3 + 3*8^1 + 7*8^0 = 1037

Decimal conversion to hexadecimal

16^0 = 1,16^1 = 16, 16^2 = 256,16^3 = 4096;

314 = 1*16^2 + 3*16^1 + *16^0 = 13a;

hexadecimal conversion to Decimal 9a = 9 *16^1 +10*16^0 = 144 + 10 = 154;

ios-binary, decimal, hexadecimal reciprocal conversions

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.