🔢 排序数字各位Sort Digits
把整数的各位数字按升序或降序排列。本地处理。可设置「顺序」。Sort digits of an integer ascending or descending. Processed locally. Settings: Order.
使用说明与常见问题How-to & FAQ
「排序数字各位」是什么?What is the Sort Digits tool?
把整数的各位数字按升序或降序排列。本地处理。可设置「顺序」。Sort digits of an integer ascending or descending. Processed locally. Settings: Order.
如何使用「排序数字各位」?How do I use the Sort Digits tool?
在「排序数字各位」中,把内容粘贴或输入到上方输入框,按需设置「顺序」,结果会实时显示在下方,点击「复制结果」即可复制。In the Sort Digits: Paste or type into the input box, adjust "Order"; the result appears below instantly — click "Copy result" to copy it.
升序前导零?Leading zero when ascending?
会与第一个非零数字交换,避免变成更短的数。Swapped with the first non-zero digit so the length stays the same.
能处理多长的数?会丢失精度吗?How long can the number be? Is precision lost?
最多 100,000 位。数字按文本逐位排序,不做数值计算,所以不会丢失任何一位。千位分隔逗号会去掉并提示;1e3 这样的指数写法和小数会报错。Up to 100,000 digits. The digits are processed as text and sorted one by one, with no arithmetic, so no digit is ever lost. Thousands commas are removed with a note; exponent forms such as 1e3 and decimals give an error.
负数怎么排?What happens with negative numbers?
负号保留,各位数字按数字大小排序,和正数一样:-3142 升序得到 -1234。注意这是按“数字”排序,不是让结果数值最小(数值最小的是 -4321)。The minus sign is kept and the digits are sorted by digit value, just as for a positive number: -3142 ascending gives -1234. This sorts the digits; it does not make the result numerically smallest (that would be -4321).
输入和输出是什么样的?What does the input and output look like?
例如在「排序数字各位」中输入 3142,「顺序」设为 升序,输出为:1234。For example, the Sort Digits turns the input 3142, "Order" set to Ascending into: 1234.
有哪些选项可以调整?What options can I adjust?
「排序数字各位」的设置:「顺序」可选 升序、降序(默认 升序)。每次生成结果都按当前设置处理。Settings in the Sort Digits — "Order": Ascending, Descending (default Ascending). The result always uses the current settings.
「排序数字各位」免费吗?需要注册吗?Is the Sort Digits free? Do I need an account?
「排序数字各位」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Sort Digits is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.