The simple math behind decimal-binary conversion algorithms - JavaScript  inDepth

Converting Fraction to Decimal can be interpreted as a procedure through which a quantity or any amount can be formed from the fraction. In more simple terms, it can also be interpreted as converting any fractional quantity into the form of a decimal.

How to Convert any Fractional Quantity into the Decimal Form?

In a fractional quantity, there is a numerator and a denominator. To get the decimal form of any fractional form, one has to divide the numerator term from the denominator term given in a fraction.

  • Step 1: First of all, the recognition of the numerator and the denominator is a must to know to move further.
  • Step 2: Then, in the second step, one has to make a division of that numerator value from the value of the denominator.
  • Step 3: one will get the decimal form required from the fractional form.

Examples

Here, we will be mentioning and discussing some of the examples on how to convert fractional quantity to any decimal form. This will ensure one can understand the topic in a more detailed description. 

  • To convert 10 / 100 into a decimal form-

In this fractional term 10/100, the numerator is 10 and the denominator is 100. Now, as 

            mentioned, numerator is to be divided from the denominator.

            Now, on the division of ten from the hundred, we will get,   0.1

  • To convert 12/8 into a decimal form-

In this particular fractional term, 12/8, the numerator is 12 and the denominator is 8. And the numerator is to be divided by the denominator. On the division of 12 from 8, we will get the result of 1.5.

  • To convert 13/9 into a decimal form-

In this specific fractional form 13/9, the numerator is 13 and the denominator is 9. The numerator of the fraction should be divided by the denominator of the fraction. On the division of 13 from 9, we will get the result of 1.444….

  • To convert 14/8 into a decimal form-

In this specific fractional form 14/8, the numerator of this specific fractional form is 14 and the denominator of this specific fractional term is 8. As we have already divided in the previous examples. Furthermore, we have to divide the numerator and the denominator. On the division of 14 from 8, we will get the value of 1.75.

Fraction

The term fraction comes from a word of Latin “Fractus”, which means broken. A fraction comprises two portions in it.  A fraction has a numerator quantity and a denominator quantity. Fractions exemplify apart from the entire. It also exemplifies the equal fraction from the entire part.
Representation of a fraction = X/ Z
Here, X is identified to be the numerator, and Z is identified to be the denominator of the provided fraction.

Types of Fractions 

There are three major categories of fractions. They are as follows –

  • Proper Fraction –

When the numerator of a fraction is minor then the denominator of that fraction, it is recognized to be a proper fraction.

For example, 3/8

  • Improper Fraction-

when the numerator of a fraction is larger than the denominator of that fraction is recognized to be an Improper fraction. 

For example, 8/3

  • Mixed Fraction –

When the fraction is mixed up, a natural number including the fraction in it is recognized to be a mixed fraction.

For example, 2*3/7

Examples

  • 4/5
  • 4/6 
  • 7/8
  • 9/3
  • 10/100
  • 59/500

To understand more about this particular topic and several other topics in a more efficient and fun way, visit Cuemath to book a free session.