分数計算器
2つの分数を加算、減算、乗算、除算し,結果を簡単化する。
結果はタイプすると更新されます。
この計算機の情報
A fraction calculator performs arithmetic on two fractions — addition, subtraction, multiplication and division — and returns the answer reduced to its lowest terms, as a decimal, and as a mixed number. Enter the numerator and denominator of each fraction, choose an operation, and the tool handles the cross-multiplication and simplification for you, showing the working line by line.
For addition and subtraction the two fractions are first rewritten over a common denominator (the product of the two denominators), the numerators are combined, and the result is divided by the greatest common divisor to simplify. Multiplication multiplies the numerators and the denominators straight across; division multiplies the first fraction by the reciprocal of the second. For example, 1/2 + 1/3 becomes 3/6 + 2/6 = 5/6, while 1/2 × 3/4 = 3/8 and 1/2 ÷ 3/4 = 1/2 × 4/3 = 4/6 = 2/3.
Exact fraction arithmetic comes up in cooking and recipe scaling, measuring in inches, splitting a bill, probability, and any classroom exercise where a precise answer beats a rounded decimal. Because the result is also shown as a decimal and a mixed number, you can read it in whichever form your problem needs.
よくある質問
どうやって2つの分数を加えるのですか。
両分数に共通分母を与え、分子を加え、簡略化する。1/2 + 1/3 は 3/6 + 2/6 = 5/6 になる。
答えはどう簡単にする?
The numerator and denominator are divided by their greatest common divisor (GCD). 6/8 has a GCD of 2, so it reduces to 3/4.
分数はどうやって分ける?
1番目の分数を2番目の逆数(逆転)で乗算する。1/2÷3/4=1/2×4/3=4/6=2/3。
二つの分数をどうやって乗算しますか。
分子と分母を並べて乗算し、簡単にする。2/3 × 3/4 = 6/12、これは1/2に減らす。
分母が異なる分数をどうやって減算しますか。
まず共通分母の上に置き、次に分子を減算する。3/4 − 1/6 = 9/12 − 2/12 = 7/12。
なぜ答えが混合数で表示されるか。
頂点重分数(不正分数)の場合は整数と正分数を加えたものとしても書く。5/4は11/4となる。
分母がゼロのときはどうなるのですか?
ゼロで除算は定義されていません。計算機はダッシュを返します。入力する分母はゼロでない数字でなければなりません。
API — コードからこの計算機を使う
この計算機を自由な JSON エンドポイントとして呼び出します。鍵は必要ありません。下のフィールド値をクエリパラメータまたは JSON として送信してください。 省略したものは、このページに既に入力されているデフォルトと同じ値を使用します。未知のパラメータは 400 で、サイレンスゼロはありません。 API ドキュメントを読む →
エンドポイント
GET https://calculator.free/api/v1/fraction/
curl
curl "https://calculator.free/api/v1/fraction/?a_num=1&a_den=2&op=add&b_num=1&b_den=3"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/fraction/?" + new URLSearchParams({
"a_num": "1",
"a_den": "2",
"op": "add",
"b_num": "1",
"b_den": "3"
}));
const data = await r.json();
console.log(data.results);
結果は一般的な指導のための推定であり,財務的,医療的または税務的な助言ではない。