One quarter
- Input
- 0,25
- Expected output
- 1/4
25/100 divided by 25.
common decimals as fractions 0.25 0.125 0.375
The terminating decimals that show up most in real life are few, and every one has a short fraction. Below are the values from 0.05 to 0.875 and the rule that produces them, so you can check any other decimal in the tool.
25/100 divided by 25.
75/100 divided by 25.
125/1000 divided by 125.
375/1000 divided by 125.
875/1000 divided by 125.
5/100 divided by 5.
6/10 divided by 2.
Count the decimal places, write the digits without the point as the numerator and use 1 followed by that many zeros as the denominator. Then reduce by the gcd. Example: 0.375 has 3 places, becomes 375/1000 and, dividing by 125, 3/8. With an integer part, 2.5 = 25/10 = 5/2 = 2 1/2.
1/2. The decimal 0.5 has one place, becomes 5/10 and the gcd is 5. It is the only one-place decimal whose fraction has denominator 2; the others have 5 (0.2 = 1/5) or 10 (0.1 = 1/10, 0.3 = 3/10).
Because 0.333 ends, it equals 333/1000, which is already in lowest terms and is not 1/3. Only 0.333... with a repeating block (0.(3)) equals 1/3. The gap is 1/3000, small but real, which is why the repeating-block notation matters.
The two fractions are equal, but 2/10 can still be divided by 2. The lowest-terms form, where numerator and denominator share no factor, is 1/5, and it is the one tests ask for.
Treat the whole number: 2.75 = 275/100 = 11/4, which is also written 2 3/4 as a mixed number. Another way is to keep the 2 and convert only 0.75 to 3/4.
| Decimal | Fraction |
|---|---|
| 0,25 | 1/4 |
| 0,(3) | 1/3 |
| 1,2(5) | 113/90 |
| -0,8 | -4/5 |
All the math happens in your browser. No number is sent to any server.