Download Fundamentals Computing programming Question Bank I

Transcript
Dividing this by
quotient by
remainders.
, we get
as the remainder. If we keep dividing the previous
, the subsequent
Multiplying this by
, we get
's
can be found as the
as the integer part of the product. If we keep
multiplying the fraction part of the previous product by
, the subsequent
's
can be found as the integer part of the products.
Note: This method is mostly applicable to conversion of values given in decimal
(base 10) system to other systems (base r=2, 8, 16, etc.), simply because we are
trained to multiply and divide only in decimal system. In theorey one could use
this method to convert a value given in any number system, but one has to know
how to multiply and divide in that particular system.
More Examples:

Binary to Octal
Example:

Octal to Binary
Example:

Binary to Hexadecimal
Example:

Hexadecimal to Binary
Example:

Binary-Coded-Decimal (BCD) Numbers