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

From comp.tf
Jump to navigation Jump to search
(Created page with "Inserts separators for large numbers == Usage == <nowiki>{{Thousands_separator | 123456789}}</nowiki> Returns: {{Thousands_separator | 123456789}} <nowiki>{{Thousands_sep...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Inserts separators for large numbers
+
Inserts separators for large numbers. Uses the comma (,) character by default. Only works for numbers with 21 or less digits.
  
 
== Usage ==
 
== Usage ==
  
<nowiki>{{Thousands_separator | 123456789}}</nowiki>
+
<code><nowiki>{{Thousands_separator|123456789}}</nowiki></code>
  
 
Returns:
 
Returns:
  
{{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