Monday, 6 February 2012

Number Conversions


Decimal to binary conversion:
12510
12510=11111012
125.2510
For decimal part use above procedure of LCM, For fraction part multiply fraction part with 2, from result only take decimal part, and multiply the fraction part of result  again by 2. Repeat the same procedure until fraction part is zero or required no. of bit positions after decimal point. 
Thus 125.2510=1111101.012
Decimal to octal conversion:
102310
102310 =17778

Decimal to hex-decimal:
102310

102310=3FF16
Octal to binary:
5638

Represent each octal digit with a 3-bit binary number

Hex-decimal to binary:
AF716
Represent each hex-decimal digit with 4-bit binary number
Binary to octal:
1110010110102
Partition data into three bit sets, from right to left. Represent each set with an octal digit.


Binary to hex-decimal:
11100101011000012
Partition data into four bit sets, from right to left. Represent each set with a hex-decimal digit.
1110 | 0101 | 0110 | 0001 = E56116

Any base to any base conversion:
  • Convert given base number into decimal number
  •  Convert that decimal number into required base

Back                                                TOC                                                       Next













No comments:

Post a Comment