🧹 去除整数中的千位逗号Remove Commas from an Integer
去掉整数写法里的千位逗号(1,234,567 → 1234567),可批量处理,保留负号。本地处理。Strip thousands commas from integer notation (1,234,567 -> 1234567), in bulk, keeping signs. Processed locally.
使用说明与常见问题How-to & FAQ
「去除整数中的千位逗号」是什么?What is the Remove Commas from an Integer tool?
去掉整数写法里的千位逗号(1,234,567 → 1234567),可批量处理,保留负号。本地处理。Strip thousands commas from integer notation (1,234,567 -> 1234567), in bulk, keeping signs. Processed locally.
如何使用「去除整数中的千位逗号」?How do I use the Remove Commas from an Integer tool?
在「去除整数中的千位逗号」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「1_000 -2_500_000」,得到「1000 -2500000」。Paste integers written with thousands separators, such as 1,234,567 or 1_000. The commas and underscores are removed and the signs kept, so 1_000 -2_500_000 becomes 1000 -2500000; click "Copy result" to copy the output.
会接受哪些逗号写法?Which comma formats are accepted?
只接受标准的千位分组:逗号每 3 位一个(1,234、-1,234,567)。1,23 或 1234,567 这样位置不对的写法会报错,不会悄悄拼成 123;如果其实是两个数,请用空格分开。小数(1,000.50)也会报错。Only standard thousands grouping, with a comma every 3 digits (1,234 or -1,234,567). Misplaced commas such as 1,23 or 1234,567 give an error instead of silently becoming 123; if they are really two numbers, separate them with a space. Decimals such as 1,000.50 are rejected too.
用空格分组的数(1 000)呢?What about numbers grouped with spaces (1 000)?
空格、分号和换行都是分隔符,所以 1 000 会被当作 1 和 000 两个数,原样保留(不会变成 1 0),结果说明里会提示。要合并,请先删除数字中间的空格。下划线分组(1_000)会去掉下划线。Spaces, semicolons and line breaks separate values, so 1 000 is read as two values, 1 and 000, and left as is (not turned into 1 0); the info line points this out. To merge them, delete the space first. Underscore grouping (1_000) has the underscores removed.
结果精确吗?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.
「去除整数中的千位逗号」免费吗?需要注册吗?Is the Remove Commas from an Integer free? Do I need an account?
「去除整数中的千位逗号」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Remove Commas from an Integer is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.