跳转到内容

模板:Thousands separator/doc

维基百科,自由的百科全书

说明

[编辑]

这个模板用于给阿拉伯数字快速加上千位分隔符。

用法

[编辑]

{{Thousands separator|數字}}

参数

[编辑]

1(必要):待格式化的数字(支援整数、小数)。

范例

[编辑]

{{Thousands separator|12345678}} → 12,345,678

{{Thousands separator|987654321.1234}} → 987,654,321.1234

{{Thousands separator|-12345}} → -12,345