跳至內容

模板: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