Decimal to Fraction Converter

Formula: Multiply by 10^n to remove decimals, then simplify by GCD

Decimal to Fraction Converter

Converting decimals to fractions helps express values in exact form, avoiding rounding issues common with decimal representations.

Conversion Formula

Multiply by 10^n to remove decimals, then simplify by GCD

The decimal is multiplied by 10^n (where n is the number of decimal places) to get the numerator. The denominator is 10^n. Both are divided by their GCD.

Step-by-Step Examples

0.375 = 3/8

0.375 = 375/1000. GCD(375,1000) = 125. Result: 3/8.

0.5 = 1/2

0.5 = 5/10. GCD(5,10) = 5. Result: 1/2.

Frequently Asked Questions

How do I convert a decimal to a fraction?

Write the decimal over a power of 10 based on the number of decimal places, then simplify. For example, 0.75 = 75/100 = 3/4.

What is 0.5 as a fraction?

0.5 = 5/10 = 1/2.

What is 0.333 as a fraction?

0.333 = 333/1000. For the exact repeating decimal 0.333..., the fraction is 1/3.

Can negative decimals be converted?

Yes. The sign is preserved in the numerator of the resulting fraction.

What about whole numbers?

Whole numbers are returned as themselves over 1 (e.g., 5 = 5/1).