LocalExcelTool
はじめる

電卓

四則演算と括弧、べき乗に対応した電卓。式を入れてすぐ計算。

電卓とは

電卓ツールは、四則演算(足し算・引き算・掛け算・割り算)に括弧とべき乗(^)を加えた数式を評価するツールです。ブラウザ内で安全に解析され、サーバーに送信されません。

🔒 処理はすべてブラウザ内で完結し、データは送信されません。

このツールの前提

処理場所
このページのブラウザ内(JavaScript / Canvas)
アップロード
なし — ファイルは端末の外に出ません
オフライン
ページを開いた後は通信不要

Order of operations, evaluated left to right within precedence

Expressions follow standard precedence: parentheses, then exponent, then multiplication and division, then addition and subtraction, with equal-precedence operators evaluated left to right. So 6 / 2 * 3 is 9, not 1 — division and multiplication share a level and are not implicitly parenthesised.

Unary minus binds tighter than multiplication but looser than the exponent, so -2^2 is -4 rather than 4. That surprises people, and it matches the convention used in mathematics and in most programming languages, which is why it is the behaviour here rather than a special case for a minus in front.

Why 0.1 + 0.2 is not 0.3

Binary floating point cannot represent most decimal fractions exactly. 0.1 and 0.2 are each stored as the nearest available binary value, and their sum is 0.30000000000000004 — a correct result for the values actually used, and a wrong answer for a question about money.

The display rounds to hide it, but comparisons do not: 0.1 + 0.2 === 0.3 is false. For currency, work in integer cents, and for anything where the check matters, compare with a tolerance rather than for equality.

Precision limits at the extremes

Doubles hold about 15–17 significant decimal digits; beyond that the trailing digits are noise. Very large results print in exponential notation, and very small ones lose significance, so a calculation that mixes 10^20 with 10^-20 will drop the small term entirely.

Division by zero yields Infinity rather than an error, and 0/0 yields NaN, which propagates silently through every subsequent operation. If a result shows Infinity or NaN, the cause is upstream, not in the final step.

使い方

  1. 1.数式を入力(例: (12+8)*3)
  2. 2.「実行する」をクリック
  3. 3.計算結果をコピー

他の方法との比較

同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。

観点このツールサーバー側の変換サービス
ファイルの処理場所このページのブラウザ内ベンダーのサーバー(アップロード後)
アカウント不要多くの場合必要(無料枠の制限解除に登録を求める)
無料で扱えるサイズサイズ制限なし(回数制限もなし)数ファイル/時間、または 5〜10MB 程度で課金 wall
料金無料。Pro は月 $9(大きいファイルと AI 機能のみ)サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点)
オフライン一度開けば通信不要不可
20MB を処理し始めるまで待ち時間なし(アップロードが無い)アップロードが支配的(10Mbps 上りで約 16 秒)
保証できないこと結果の隣に式を表示するので、計算を検算できます同じ(変換の原理は変わらない)

サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。

よくある質問

どんな演算子が使えますか?

+ - * / に加えて、剰余(%)、べき乗(^)、括弧 () が使えます。例: (12+8)*3^2

式は送信されますか?

いいえ。ブラウザ内で解析・計算され、入力内容は外部に出ません。

小数も計算できますか?

はい、小数に対応しています。丸め誤差は出力時に整理されます。

この変換で失われるもの

計算ツールは結果だけでなく使用した式も表示します。納得できない結果を、ブラックボックスとして捨てるのではなく、一行ずつ検算できます。

その他の電卓・計算