Jump to content

Template:Csn ni

From Meta, a Wikimedia project coordination wiki




Template:Csn ni

Comma Separated Number, with Nested Ifs.

Separates digits of an integer in groups of three; gives up to two commas:

123

1,234

12,345

123,456

1,234,567

12,345,678

123,456,789

1234,567,890

12345,678,901

123456,789,012

1234567,890,123

12345678,901,234

123456789,012,345

1234567890,123,456

Rounding errors:

12345678901,234,568

123456789012,345,680

Rounding errors and notational errors:

1234567890123,456,768

12345678901236,-984,-448

{{subst:csn ni|1234567890123456}} gives the wikitext:

1234567890,123,456

Compare Template:Csn.