✂ 拆分整数(按位数 / 块)Split an Integer
把整数按固定位数或固定块数切开(例如 123456 按 2 位 → 12 34 56),可从左或从右切,保留符号。适合分组显示和教学,本地处理。Split an integer into fixed-size digit chunks or a fixed number of parts (e.g. 123456 by pairs -> 12 34 56), from the left or right, keeping the sign. Handy for grouped display and teaching. Processed locally.
使用说明与常见问题How-to & FAQ
「拆分整数(按位数 / 块)」是什么?What is the Split an Integer tool?
把整数按固定位数或固定块数切开(例如 123456 按 2 位 → 12 34 56),可从左或从右切,保留符号。适合分组显示和教学,本地处理。Split an integer into fixed-size digit chunks or a fixed number of parts (e.g. 123456 by pairs -> 12 34 56), from the left or right, keeping the sign. Handy for grouped display and teaching. Processed locally.
如何使用「拆分整数(按位数 / 块)」?How do I use the Split an Integer tool?
在「拆分整数(按位数 / 块)」中,把内容粘贴或输入到上方输入框,按需设置「方式」、「每块位数」、「块数」、「方向(按位数)」、「分隔」,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「123456」,得到「12 34 56」。In the Split an Integer: Paste or type into the input box, adjust "Mode", "Digits per chunk", "Number of parts", "Direction (chunk size)", "Separator"; the result appears below instantly — click "Copy result" to copy it. Example: "123456" → "12 34 56".
怎样输入多个整数?How do I enter several integers?
每行一个,或用空格、逗号、分号分隔。像 1,234,567 这样每 3 位一个逗号的写法按千位分隔读作一个数(所以 10,100 是 10100,要表示两个数请写 10 100);也可以用下划线分组(1_000)。负号可用 -、−(U+2212)或全角 -,全角数字也能识别。小数、科学计数法(1e3)或夹杂文字会报错并指出是第几个、完整显示那个值。One per line, or separated by spaces, commas or semicolons. A value with a comma every three digits, like 1,234,567, is read as one number with thousands separators (so 10,100 is 10100; write 10 100 for two values); underscores also group digits (1_000). Minus can be a hyphen, the Unicode minus (U+2212) or the fullwidth minus, and fullwidth digits work. Decimals, scientific notation (1e3) or stray text give an error naming the position and showing the whole value.
结果精确吗?Are the results exact?
精确。整数按大整数(BigInt)处理,不经过浮点,几十位的数也逐位切分;输入的前导零会去掉并在结果下方提示。「每块位数」须为 1–1000,「块数」须为 2–100,0 或超出范围会报错。Yes. Integers are handled as big integers (BigInt) with no floating-point step, so even numbers with dozens of digits are split digit by digit; leading zeros in the input are dropped with a note below the result. Digits per chunk must be 1-1000 and Number of parts 2-100; 0 or out-of-range values give an error.
从右切和从左切有何不同?Left vs right chunking?
从右切时末块可能更短(或更长,取决于余数);从左切时首块对齐。账号、卡号常用从右切。From the right the first chunk may be shorter; from the left the start lines up. Account numbers often use from-the-right.
输入和输出是什么样的?What does the input and output look like?
例如在「拆分整数(按位数 / 块)」中输入 123456,输出为:12 34 56。For example, the Split an Integer turns the input 123456 into: 12 34 56.
有哪些选项可以调整?What options can I adjust?
「拆分整数(按位数 / 块)」的设置:「方式」可选 按每块位数、按块数(默认 按每块位数);「每块位数」默认 2;「块数」默认 2;「方向(按位数)」可选 从右切、从左切(默认 从右切);「分隔」可选 空格、逗号、换行、无分隔(默认 空格)。每次生成结果都按当前设置处理。Settings in the Split an Integer — "Mode": By chunk size, By number of parts (default By chunk size); "Digits per chunk" default 2; "Number of parts" default 2; "Direction (chunk size)": From the right, From the left (default From the right); "Separator": Spaces, Commas, New lines, None (default Spaces). The result always uses the current settings.
「拆分整数(按位数 / 块)」免费吗?需要注册吗?Is the Split an Integer free? Do I need an account?
「拆分整数(按位数 / 块)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Split 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.