Вы находитесь на странице: 1из 1

Decimal System = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}10 - digits Binary System = {0, 1}2 - digits Example of expanded notation for the

integer 6518 6518 = 6000 + 500 + 10 + 8 = 6x1000 + 5x100 + 1x10 + 8x1 = 6x103 + 5x102 + 1x101 + 8x100base
place value

The place values in the decimal system are the powers of 10 - (3, 2, 1, 0) Example - binary number 101110 can be expanded the same way 1011102 = 1x25 + 0x24 + 1x23 + 1x22 + 1x21 + 0x20 = 1x32 + 0x16 + 1x8 + 1x4 + 1x2 + 0x1 = 32 + 0 + 8 + 4 + 2 + 0 = 4610 The place values in the binary system are the powers of 2 - (5, 4, 3, 2, 1, 0) Convert a binary number into a decimal number: Multiply each binary digit by its base 2 raised to its place value and then add all the products. Convert a decimal to binary: Divide successively the decimal number by 2 as shown below. 46/2 23/2 11/2 5/2 2/2 1/2 = 23 remainder 0 = 11 remainder 1 = 5 remainder 1 = 2 remainder 1 = 1 remainder 0 = 0 remainder 1 (MSB) 1 0 1 1 1 0 (LSB) MSB (most significant bit) LSD (least significant bit) 8 bits = 1 byte 128 64 32 1 16 0 8 1 4 1 2 1 1 0

Вам также может понравиться