Difference between revisions of "Template:Thousands separator/doc"

From comp.tf
Jump to navigation Jump to search
m
 
Line 3: Line 3:
 
== Usage ==
 
== Usage ==
  
<nowiki>{{Thousands_separator|123456789}}</nowiki>
+
<code><nowiki>{{Thousands_separator|123456789}}</nowiki></code>
  
 
Returns:
 
Returns:
Line 9: Line 9:
 
{{Thousands_separator|123456789}}
 
{{Thousands_separator|123456789}}
  
<nowiki>{{Thousands_separator|123456789|.}}</nowiki>
+
<code><nowiki>{{Thousands_separator|123456789|.}}</nowiki></code>
  
 
Returns:
 
Returns:
  
 
{{Thousands_separator|123456789|.}}
 
{{Thousands_separator|123456789|.}}

Latest revision as of 09:38, 20 April 2020

Inserts separators for large numbers. Uses the comma (,) character by default. Only works for numbers with 21 or less digits.

Usage[edit]

{{Thousands_separator|123456789}}

Returns:

123,456,789

{{Thousands_separator|123456789|.}}

Returns:

123.456.789