🔁 取模/取余计算器Modulo Calculator
计算 a mod n 的三种定义:向下取整(floor,结果与 n 同号,Python 的 %)、截断(truncated,结果与 a 同号,JS/C/Java 的 %)和欧几里得(结果总是非负),并给出对应的商,支持大整数。a mod n under three definitions — floored (sign of n, Python %), truncated (sign of a, JS/C/Java %) and Euclidean (always non-negative) — each with its matching quotient; BigInt supported.
使用说明与常见问题How-to & FAQ
「取模/取余计算器」是什么?What is the Modulo Calculator?
计算 a mod n 的三种定义:向下取整(floor,结果与 n 同号,Python 的 %)、截断(truncated,结果与 a 同号,JS/C/Java 的 %)和欧几里得(结果总是非负),并给出对应的商,支持大整数。a mod n under three definitions — floored (sign of n, Python %), truncated (sign of a, JS/C/Java %) and Euclidean (always non-negative) — each with its matching quotient; BigInt supported.
如何使用「取模/取余计算器」?How do I use the Modulo Calculator?
在「取模/取余计算器」中,填写「a」、「n」等参数,结果会随输入实时计算并显示在下方。In the Modulo Calculator: Fill in "a", "n"; results are recalculated instantly as you type.
计算精度如何?How precise are the results?
「取模/取余计算器」使用 JavaScript 双精度浮点数(约 15–16 位有效数字),部分功能使用 BigInt 处理大整数。The Modulo Calculator uses double-precision floating point (about 15–16 significant digits); some features use BigInt for large integers.
「取模/取余计算器」免费吗?需要注册吗?Is the Modulo Calculator free? Do I need an account?
「取模/取余计算器」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Modulo Calculator is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.