Decimal to Fraction Calculator Online Tool

Decimal Number10

Integer
Numerator
Denominator

About Decimal to Fraction Calculator Online Tool:

This online Decimal to Fraction Calculator helps you to convert one decimal number into a fraction number. the numerator and denominator result will show in the textbox.

Decimal Numeral System:

Decimal numeral system (also called Hindu-Arabic, or Arabic) has 10 digits, include (0, 1, 2, 3, 4, 5, 6, 7, 8, 9), it's the most used number system in our daily life. Decimal numeral system is also one of the most ancient number system, it's inspired by 10 fingers of human.

Fraction Number System:

Fraction represents a part of a whole, the field above the black line is the numerator, the field below the black line is the denominator. While both the numerator and the denominator are natural numbers, the fraction it self sometimes can't be represented as natural numbers.

comic decimal to fraction

How to convert from decimal to fraction?

  1. Step 1: Convert the decimal number into fraction with the denominator is power of 10.

  2. Step 2: Find the Greatest Common Divisor (GCD) of the denominator and numerator.

  3. Step 3: Divide the denominator and numerator by the Greatest Common Divisor at the same time.

Decimal to Fraction conversion table:

Decimal Fraction Decimal Fraction
0.01 1/100 0.25 1/4
0.08333333 1/12 0.28571429 2/7
0.09090909 1/11 0.3 3/10
0.1 1/10 0.33333333 1/3
0.11111111 1/9 0.375 3/8
0.125 1/8 0.4 2/5
0.14285714 1/7 0.42857143 3/7
0.16666667 1/6 0.44444444 4/9
0.2 1/5 0.5 1/2
0.22222222 2/9 0.55555555 5/9

More information:

Wikipedia (Fraction): https://en.wikipedia.org/wiki/Fraction_(mathematics)

Wikipedia (Decimal): https://en.wikipedia.org/wiki/Decimal

Convert Decimal to Fraction with Python:

import fractions


def decimal_to_fraction(decimal_number):
    fraction = fractions.Fraction(decimal_number)
    return fraction


decimal_input = -1.25
fraction_output = decimal_to_fraction(decimal_input)
print('fraction result is:{0}'.format(fraction_output))

-------------------
fraction result is:-5/4