全球免费使用

小数转分数转换器,支持循环小数

将小数转换为最简形式的精确分数和带分数。循环部分写在括号内,对于 3.14159 这样的长小数还可得到最接近的简单分数。

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

输入

提示:按 Ctrl + Enter 运行

你的结果

结果将显示在这里。

下方的详细帮助目前仅提供英文版。

关于此工具

Tape measures, drill bits and recipes speak in fractions, while calculators and spreadsheets give decimals. This converter turns a decimal into the exact fraction it represents, reduces it to lowest terms and shows the mixed number, so 2.375 inches becomes 2 3/8 inches. It also handles repeating decimals written with brackets and, for long decimals, finds the closest fraction with a small denominator.

使用方法

  1. Type the decimal, for example 0.625 or 2.375. A comma works as the decimal mark too.
  2. If digits repeat forever, put only the repeating block in brackets: 0.(3) for one third, 0.1(6) for one sixth.
  3. Leave the largest denominator at 1000, or lower it to 16 or 64 when you need an answer that matches the marks on a ruler.
  4. Run it and read the exact fraction, the mixed number and the percentage. A closest-fraction line appears when the exact denominator is larger than your limit.

计算原理

A terminating decimal with k digits after the point is written over 10 to the power k, so 2.375 is 2375/1000, and both parts are divided by their greatest common divisor (125) to get 19/8. For a repeating decimal the tool subtracts the non-repeating part: 0.1(6) gives (16 − 1)/90 = 15/90 = 1/6. Whole-number arithmetic is exact, with no floating-point rounding. The closest fraction uses continued fractions, which give the best approximation for any denominator limit.

0.375 = 375/1000 = 3/8; 0.1(6) = (16 − 1)/90 = 1/6; closest fraction by continued fractions

计算示例

A woodworking plan lists a 2.375 inch dowel and your drill bits are marked in fractions. 2.375 converts to 19/8, which is the mixed number 2 3/8, so you need the 2 3/8 inch bit. If a spreadsheet shows 3.14159 instead, the exact answer is 314159/100000, and the closest fraction with a denominator up to 1000 is 355/113, off by less than three millionths.

示例输入和结果

0.375 = 3/8;2.5 = 5/2 = 2 1/2;0.(3) = 1/3

局限性

  • Input is limited to 40 characters, and the bracket notation only works for one repeating block at the end of the number.
  • Irrational numbers such as π or √2 never have an exact fraction; the tool can only approximate the digits you type.
  • Scientific notation such as 1.5e-3 is not accepted; write the decimal out in full.

最后更新:

常见问题

如何输入循环小数?

将循环部分写在括号内:0.333... 写作 0.(3),0.1666... 写作 0.1(6),1/7 写作 0.(142857)。

“最接近分数”这一行有什么用?

当精确分数的分母非常大时,工具还会显示分母不超过您所设上限的最佳分数,例如 3.14159 对应 355/113。

常见问题

Why does 0.33 not give 1/3?

0.33 is exactly 33/100. One third is 0.333… without end, which you enter as 0.(3). The tool converts the digits you type, not the number you might have meant.

How do I get a fraction in sixteenths for a tape measure?

Set the largest denominator to 16. The closest-fraction line then shows the nearest sixteenth (or a simpler fraction such as 3/8) along with the size of the error.

Does it work with negative numbers?

Yes. −0.75 gives −3/4, and the mixed number keeps the minus sign on the whole part, as in −1 1/4.

Can I convert a fraction back to a decimal?

Divide the top by the bottom, or use the fraction calculator, which shows fractions in lowest terms.

故障排除

It says the input is invalid.

Use digits, at most one decimal point and, optionally, one pair of brackets at the end, for example 1.2(34). Remove spaces, units and percent signs.

The fraction has a huge denominator.

That is the exact value of a long decimal. Read the closest-fraction line, or lower the largest denominator to get a simpler answer.

I typed 0.(9) and got 1.

That is correct: 0.999… repeating is exactly equal to 1.

隐私 & 免费使用

我的输入会被保存吗?

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

这个工具免费吗?

是的。无需注册或付费。

在浏览器中处理

推荐下一步