If this tool helped you, you can buy us a coffee ☕
计算两数相除的余数,支持正整数与负数的取模运算。
Quotient truncated towards zero; remainder has same sign as dividend.
Formulas
a mod n = a - q × n
Where q is the quotient and n is the divisor. Different modulo modes use different rounding rules, which may lead to different results.
| Modulo Mode | Remainder |
|---|---|
| Truncated (C / JS / Java %) | 2 |
| Floored (Python %) | 2 |
| Euclidean (Non-negative remainder) | 2 |

Trigonometry Calculator
Calculate six trigonometric functions from radian values with custom decimal precision.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.

Prime and Composite Number Calculator
Instantly identify prime, composite, or special numbers. Supports batch checking and mathematical property analysis.

Least Common Multiple (LCM) Calculator
Quickly calculate the least common multiple (LCM) of two or more integers. Supports space-separated number list input.

Trigonometry Calculator
Calculate six trigonometric functions from radian values with custom decimal precision.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.

Prime and Composite Number Calculator
Instantly identify prime, composite, or special numbers. Supports batch checking and mathematical property analysis.

Least Common Multiple (LCM) Calculator
Quickly calculate the least common multiple (LCM) of two or more integers. Supports space-separated number list input.

Circle Area Calculator
Quickly calculate the area of a circle by entering the radius, diameter, or circumference. Supports custom units and precision settings.
手算大数相除的余数既慢又易错。取模计算器只需输入被除数和除数,立刻输出精确余数(即模运算结果)。模运算定义为 a mod b = r,其中 a 是被除数,b 是除数(不为零),r 是除法所得的余数,满足 0 ≤ r < |b|。本工具严格遵循数学定义,让余数计算变得零门槛。
本工具仅支持整数输入,不支持小数或分数取模。除数必须为非零整数。结果基于数学定义,部分编程语言(如 C/Java 的 % 运算符)可能返回负余数,请区分场景使用。所有计算在您的浏览器本地完成,不会上传任何数据,请放心使用。
取模运算在计算机科学中无处不在:判断奇偶性(n mod 2)、哈希函数、环形缓冲区索引、闰年判断等。在密码学中,模幂运算(如 RSA)依赖大数取模。本工具可作为学习或验证的快速辅助:例如 17 mod 5 = 2,100 mod 7 = 2。若需连续验证多个算式,直接修改输入即可,无需刷新页面。