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...")
 
m
Line 1: Line 1:
Inserts separators for large numbers
+
Inserts separators for large numbers. Uses the comma (,) character by default.
  
 
== Usage ==
 
== Usage ==
  
<nowiki>{{Thousands_separator | 123456789}}</nowiki>
+
<nowiki>{{Thousands_separator|123456789}}</nowiki>
  
 
Returns:
 
Returns:
  
{{Thousands_separator | 123456789}}
+
{{Thousands_separator|123456789}}
  
<nowiki>{{Thousands_separator | 123456789 | .}}</nowiki>
+
<nowiki>{{Thousands_separator|123456789|.}}</nowiki>
  
 
Returns:
 
Returns:
  
{{Thousands_separator | 123456789 | .}}
+
{{Thousands_separator|123456789|.}}

Revision as of 06:46, 10 December 2019

Inserts separators for large numbers. Uses the comma (,) character by default.

Usage

{{Thousands_separator|123456789}}

Returns:

123,456,789

{{Thousands_separator|123456789|.}}

Returns:

123.456.789