📊 整数分析(个数、求和、平均、奇偶等)Analyze Integers
分析一串整数:个数、最小值、最大值、求和、平均值、中位数、偶数/奇数个数、正负零个数。适合快速摸清数据分布,本地处理。Analyze a list of integers: count, min, max, sum, mean, median, even/odd counts, and positive/negative/zero counts. Handy for a quick look at a dataset. Processed locally.
使用说明与常见问题How-to & FAQ
「整数分析(个数、求和、平均、奇偶等)」是什么?What is the Analyze Integers tool?
分析一串整数:个数、最小值、最大值、求和、平均值、中位数、偶数/奇数个数、正负零个数。适合快速摸清数据分布,本地处理。Analyze a list of integers: count, min, max, sum, mean, median, even/odd counts, and positive/negative/zero counts. Handy for a quick look at a dataset. Processed locally.
如何使用「整数分析(个数、求和、平均、奇偶等)」?How do I use the Analyze Integers tool?
在「整数分析(个数、求和、平均、奇偶等)」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。Paste a list of integers, separated by spaces or new lines. The summary below shows the count, minimum, maximum, sum, mean and median plus how many are even, odd, positive, negative and zero, and it updates as you edit; click "Copy result" to copy it.
怎样输入多个整数?How do I enter several integers?
每行一个,或用空格、逗号、分号分隔;可带千位逗号和下划线,负数前面加 -。One per line, or separated by spaces, commas or semicolons; thousands commas and underscores are fine, put - in front of negatives.
结果精确吗?Are the results exact?
精确。所有整数都按大整数(BigInt)处理,不经过浮点,超过 2^53 的数(例如 9007199254740993)也不会被舍入;几千上万行也是线性处理。Yes. Every value is handled as a big integer (BigInt) with no floating-point step, so numbers above 2^53 such as 9007199254740993 are never rounded; thousands of lines are processed in linear time.
平均值怎样算?How is the mean calculated?
用整数除法:总和 ÷ 个数;除不尽时标注「有余数」。中位数精确:个数为偶数时取中间两个数的平均,可能是 .5(例如 1 2 3 4 的中位数是 2.5)。Integer division: sum / count; if there is a remainder the result is marked. The median is exact: with an even count it is the mean of the middle two, which can end in .5 (1 2 3 4 → 2.5).
小数或文字会怎样?What about decimals or words?
只接受整数。小数(如 1.5)、科学计数(1e3)、十六进制(0x10)或文字都会提示是第几个、完整显示那个值,不会被悄悄拆开或忽略。负号可以用 -、−(U+2212)或全角 -。Only integers are accepted. A decimal (1.5), scientific notation (1e3), hex (0x10) or a word gets an error that names its position and shows the whole value — nothing is split or skipped silently. Minus can be a hyphen-minus, the Unicode minus sign (U+2212) or the fullwidth minus (U+FF0D).
「整数分析(个数、求和、平均、奇偶等)」免费吗?需要注册吗?Is the Analyze Integers free? Do I need an account?
「整数分析(个数、求和、平均、奇偶等)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Analyze Integers is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.