本文へスキップ
Number Buffet

分数と小数

分数を小数に、小数を分数に変換します。循環小数も厳密に扱い、分数は既約の形まで約分します。

読了 3 分

設定

クイックプリセット

One value per line. Fractions (3/8), mixed numbers (2 3/4), decimals (0.375), repeating decimals written with the repeating block in brackets (0.08(3)) and e-notation (1.25e-3) are all accepted.

There is no single standard: British schools use dots, American texts an overline, much of continental Europe brackets.

Long division stops here. A repetend longer than this is reported as truncated rather than silently cut.

Writes 11/4 as 2 3/4 instead of leaving it improper.

Reads 0.3333 as 0.(3) when a block repeats at least twice. Turn this off to treat typed digits literally; brackets are always exact.

Prints "input = output", using ≈ when the decimal had to be truncated.

見た目を微調整

まず画像の横にあるプリセットを選んでください。ここで細かく調整します。

Frame

A border drawn inside the edge of the image.

詳細設定

結果

7 件の値

1/2 = 0.5, 1/3 = 0.3̅, 1/7 = 0.1̅4̅2̅8̅5̅7̅, 3/8 = 0.375, 0.375 = 3/8, 0.08(3) = 1/12, 2 3/4 = 2.75


画像を作成

これらの数字を装飾して画像としてダウンロードするには JavaScript を有効にしてください。値そのものは上に一覧表示されています。

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

以下の解説記事はまだ翻訳されておらず、英語で表示されます。

分数と小数について

Fractions are older than place value. The Rhind Mathematical Papyrus, copied around 1550 BCE by the scribe Ahmose from a text perhaps two centuries older, works almost entirely in unit fractions — sums of reciprocals such as 1/2 + 1/7 + 1/14 — and opens with a table expressing 2/n in that form for odd n up to 101. Babylonian scribes had something closer to our decimals much earlier: their base-sixty place value system extended to the right of the units, which is why we still cut hours and degrees into sixtieths and sixtieths of sixtieths.

Decimal fractions took far longer to settle. Al-Uqlidisi, writing in Damascus around 952, used them in his arithmetic of the Hindu numerals, though historians disagree about how deliberately; al-Kashi applied them systematically in The Key to Arithmetic (1427) while working at Ulugh Beg's observatory in Samarkand. In Europe the decisive popularizer was Simon Stevin, whose short pamphlet De Thiende ("The Tenth", Leiden, 1585) argued that decimal fractions should replace common fractions everywhere, and that weights, measures and coinage should be decimalized too — a proposal that waited for the French Revolution. Stevin's own notation was cumbersome, circling the position of each digit. The modern point arrived with John Napier's Rabdologiae (1617); an earlier printed use by Bartholomaeus Pitiscus in 1608 is sometimes claimed, but that attribution is disputed.

Repeating decimals got their theory from number theory rather than from commerce. Gauss treated the conversion of ordinary fractions into decimals in Section VI of the Disquisitiones Arithmeticae (1801), tying the length of the repeating block to the order of 10 modulo the denominator — the result that explains why 1/7 needs six repeating digits while 1/11 needs only two. The notation never standardized: British schools mark the repetend with dots over its first and last digits, American texts draw an overline, and continental European ones often use brackets, which is why this page lets you pick.

主な性質

  • A fraction in lowest terms has a terminating decimal expansion in base ten exactly when its denominator has no prime factors other than 2 and 5.
  • Otherwise the expansion repeats forever, and the length of the repeating block is the multiplicative order of 10 modulo the part of the denominator coprime to 10.
  • If the reduced denominator is 2^a · 5^b · d with d coprime to 10, the expansion settles into its repeating block after max(a, b) digits.
  • Every repeating decimal is rational: 0.(abc) = abc/999, and that identity — multiply by a power of ten, subtract, divide — is the method this page uses.
  • The repetend of 1/n is at most n − 1 digits long. Primes achieving that maximum are called full reptend primes, and begin 7, 17, 19, 23, 29, 47.
  • 1/7 = 0.(142857), and multiplying 142857 by 2, 3, 4, 5 or 6 gives a cyclic rotation of the same six digits.
  • Every terminating decimal has a second exact representation ending in repeating nines: 0.2 = 0.1(9), and 1 = 0.(9).
  • Reducing by the greatest common divisor and keeping the denominator positive gives each rational number exactly one canonical form.

登場する場面

  • Machine shops and US customary measurement work in binary fractions — 1/16, 1/32, 1/64 of an inch — because repeated halving stays exact in both fractions and decimals (1/64 = 0.015625).
  • US stock markets quoted prices in eighths and sixteenths of a dollar until decimalization was completed in 2001, a change that shrank the minimum tick from 6.25 cents to one cent.
  • Binary floating point cannot represent 1/10 exactly, which is why 0.1 + 0.2 does not equal 0.3 in most programming languages and why financial code stores integer cents or uses a decimal type.
  • Music notation is a fraction system: a time signature is a fraction of a whole note, and tuplets are the places where the arithmetic stops dividing evenly.
  • Gear and pulley ratios are quoted as fractions because the exact integer tooth counts matter — a 7:1 reduction behaves differently from the decimal 0.142857 it rounds to.

このジェネレーターの使い方

生成された値は上部に表示され、横にコピーボタンがあります。画像にするには 画像を作成 のスタイルから見た目を選び、書き出しサイズを指定して PNG・JPEG・WebP でダウンロードしてください。すべてブラウザー内で描画されるため、生成した内容がサーバーに送られることはありません。

操作に合わせてアドレスバーが更新されるので、リンクは常に表示どおりの状態を再現します。特定の数列を共有したり、設定を保存しておくのに便利です。値をプレーンテキストで取り出すには コピー、CSV・JSON・NDJSON・SQL・XML が必要なら データを書き出す を使ってください。

出典

このページの歴史的な記述は、上に挙げたオープンライセンスの資料に基づいています。誤りを見つけたら お知らせください。修正します。