Preview

How to Convert Decimal Fractions to Binary in a More Attractive Way

Good Essays
Open Document
Open Document
593 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
How to Convert Decimal Fractions to Binary in a More Attractive Way
How to convert decimal fractions to binary in a more attractive way

We all know how to convert decimal integral numbers to binary (don't we?) by the simple method of dividing succesively by 2 and using the remainders but what happens when we are trying to convert a decimal number which has a fractional part?

First we can see that it is obvious that the integral part of a decimal number will always be represented by an integral binary (with no fractional part) while the fractional part of a decimal number will always be represented by a fractional part of a binary number (with no integral part). An integral number will be integral in any integral base and a fractional number will be fractional in any integral base. This means we can split a decimal number into its integral and fractional parts, convert them separately to binary and add them up again in binary. This means we can forget about the integral part and concentrate on converting the fractional part. Some decimal fractions may convert into binary exactly (like .5625) but others may not (like .5624) and we may get an infinite number of binary digits in the binary fraction.

One way of converting a decimal fraction to binary fraction is to first multiply it by a power of 2 so that it becomes an integral number, then convert to binary and then divide by the same power of 2 (which now just means displacing the binary point to the left).

Examples:

- Convert .5625 to binary. - Multiply .5625 * 2^4 = 9 - Convert 9 to binary = 1001 - Divide 1001 / 2^4 = .1001

- Convert .5625 to binary - Multiply .5625 * 2^10 = 576 - Convert 576 to binary = 1001000000 - Divide 1001000000 / 2^10 = .1001000000 (Same thing, more precision)

- Convert .5624 to binary - Multiply .5624 * 2^20 = 589719.1424 - Convert 589719 to binary = 10001111111110010111 - Divide 10001111111110010111 / 2^20 = .10001111111110010111 (The more precision you want, the higher the power

You May Also Find These Documents Helpful

  • Satisfactory Essays

    NT1210 Lab 1

    • 319 Words
    • 4 Pages

    4. The leading Zeros would make it difficult to build a decimal to binary conversion table in excel. Excel doesn’t see numbers with leading 0s as real numbers.…

    • 319 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1210 Week 1 Labs 1

    • 3680 Words
    • 20 Pages

    Using the binary converter document, create a decimal conversion for the binary value 101111 2.…

    • 3680 Words
    • 20 Pages
    Satisfactory Essays
  • Good Essays

    Pt1420 Unit 5 Study Guide

    • 2789 Words
    • 12 Pages

    2. Convert the number obtained in decimal into binary dividing the number by 2 until the quotient is zero.…

    • 2789 Words
    • 12 Pages
    Good Essays
  • Satisfactory Essays

    a. Write a C++ function named fracpart() that returns the fractional part of any number…

    • 720 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2640 U3 A1

    • 292 Words
    • 2 Pages

    Be sure to show your work, meaning your steps to convert binary to decimal, etc.…

    • 292 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 1 1

    • 814 Words
    • 9 Pages

    Using the example in Figure 1-5 and the steps that followed, create a binary conversion for the decimal value 156.…

    • 814 Words
    • 9 Pages
    Satisfactory Essays
  • Good Essays

    Labpaq Math Lab

    • 1518 Words
    • 7 Pages

    The exponent must show the number of decimal places that the decimal needs to be moved to change the number to standard notation.…

    • 1518 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Unit 8 MM150

    • 265 Words
    • 2 Pages

    To double the quantities of items with a whole number amount is easy, but what about those fractions?…

    • 265 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 1

    • 1660 Words
    • 7 Pages

    Using the example in Figure 1-5 and the steps that followed, create a binary conversion for the decimal value 156.…

    • 1660 Words
    • 7 Pages
    Satisfactory Essays
  • Better Essays

    Nt1310 Unit 1 Assignment

    • 1994 Words
    • 8 Pages

    3. Add 48 decimal to 51 decimal using the binary arithmetic; Give the answer in decimal.…

    • 1994 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    Number Conversions

    • 180 Words
    • 2 Pages

    2.Convert your binary result back into decimal to prove your answer is correct. This is also…

    • 180 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Mth 208 Week 2 Dq1

    • 253 Words
    • 2 Pages

    Integers are the natural numbers of (0, 1,2,3,4….)and the negative non zero numbers of (-1,-2,-3,-4….)and so forth. Integers are numbers without a fractional or decimal component. Example: 23, 5, and -567 are integers, 8.45, 5½, and √2 are not integers. Integers are any number that can be expressed as the ratio of two integers. All integers are rational because integers can be expressed as a ratio of itself (9= 9/1) Rational numbers (fractional numbers) are regarded as divisions of integers. All numbers that are written as non-repeating, non-terminating decimals are “irrational” Example: Sqrt(2) or PI “3.14159…” the rational and irrationals are two different number types. Real numbers include whole numbers, rational numbers, and irrational numbers. A real number can be positive or negative or zero.…

    • 253 Words
    • 2 Pages
    Good Essays
  • Good Essays

    SIOP Lesson Plan 2

    • 747 Words
    • 4 Pages

    What would be an example of a reason why we would have to multiply a fraction by a whole number?…

    • 747 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Round Mixed Decimals

    • 1042 Words
    • 5 Pages

    Write on the board an example such as: tens, ones, decimal point, tenths, and hundredths. Ask the pupils why there is not a one place value after or to the right of the decimal point.…

    • 1042 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Jack London is a well-renowned author with titles including White Fang and his most famous novel: The Call of the Wild. London gains his reputation with his style of writing which builds interest in the reader while relating what the characters are facing in the story. This style is also seen in his brilliant short story "To Build a Fire." In "To Build a Fire," London helps the reader to relate to the story by introducing themes that humanity must deal with at some point in its life; ignorance, life-or-death decisions, and a realization of or coming to terms with death. The hardest theme for people to grasp is the realization of death.…

    • 661 Words
    • 3 Pages
    Good Essays