Google
 

Conversions Examples

Integers

In the first example the decimal integer 2012 is converted in binary by using the division method.

Converting Integers

We proof here by realizing the sum of products of the digital bits from the obtained number with the corresponding weight (the power of 2 coresponding to its position).
Converting Integers

In the following we proof the result by converting this in decimal using the division method. We divide the binary number to the value of the decimal number base 10 expressed in binary. The division uses the same rules as the one you use in conventional algebra when dividing decimal numbers.
Converting Integers

In the following example the conversion is illustrated for the octal number system. The conversion steps are similar with those used for binary. As a remark, because the base is 3 times greather than the binary (is a power of that) the number of divisions reduces proportionally. Converting Integers


Direct Conversions - binary to octal and hex and vice versa

When a base involved in conversion is a power of the other one is possible to apply a direct conversion between the numbers. In the following examples is illustrated the direct conversion between binary (2) numbers and octal (8=23) and hexadecimal (16=24).

Converting Integers
Converting Integers


Real Number Conversions (division-multiplication to octal and hex; direct conversion octal and hex to binary)

The following examples illustrates the conversion of real naumbers (numbers having an integral part and a fraction part) in octal and hexadecimal together with a direct conversion in binary.

Converting Reals

Conversions to hexadecimal.
Converting Reals







 

Copyright © 2006-2008 Vasile Avram

Valid CSS! Valid HTML 4.01 Transitional Cynthia Tested! Level Triple-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0