Difference between revisions of "Template:Format price/digits/doc"

From blackwiki
Jump to navigation Jump to search
test>Alan Liefting
test>Funandtrvl
(add category)
Line 2: Line 2:
 
This sub-template takes a number and reformats it to only 3 digits and a dot (if needed), provided it's in the 0–999.9999..... range. It's used internally by {{tl|Format price}} for producing pleasant looking numbers, and isn't meant to be called directly. Its behavior outside the specified range isn't planned for and will result in an undefined, although probably consistent (in some way), result.
 
This sub-template takes a number and reformats it to only 3 digits and a dot (if needed), provided it's in the 0–999.9999..... range. It's used internally by {{tl|Format price}} for producing pleasant looking numbers, and isn't meant to be called directly. Its behavior outside the specified range isn't planned for and will result in an undefined, although probably consistent (in some way), result.
  
=== Usage ===
+
== Usage ==
  
 
  {{tlx|Format price/digits|number}}
 
  {{tlx|Format price/digits|number}}
  
==== Examples ====
+
=== Examples ===
  
 
* {{aye}} {{tlx|Format price/digits|0}} = {{Format price/digits|0}}
 
* {{aye}} {{tlx|Format price/digits|0}} = {{Format price/digits|0}}
Line 16: Line 16:
 
* {{nay}} {{tlx|Format price/digits|-234.56}} = {{Format price/digits|-234.56}}
 
* {{nay}} {{tlx|Format price/digits|-234.56}} = {{Format price/digits|-234.56}}
  
=== See also ===
+
== See also ==
  
 
* {{tl|Format price}}
 
* {{tl|Format price}}
  
<includeonly>
+
<includeonly>{{sandbox other||
{{DEFAULTSORT:{{BASEPAGENAME}}}}
+
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
{{DEFAULTSORT:Format Price}}
 
[[Category:Currency conversion templates]]
 
[[Category:Currency conversion templates]]
[[Category:Economics templates]]
+
[[Category:Economics formatting and function templates]]
 
[[Category:Finance templates]]
 
[[Category:Finance templates]]
</includeonly>
+
}}</includeonly>

Revision as of 21:01, 10 November 2017

This sub-template takes a number and reformats it to only 3 digits and a dot (if needed), provided it's in the 0–999.9999..... range. It's used internally by {{Format price}} for producing pleasant looking numbers, and isn't meant to be called directly. Its behavior outside the specified range isn't planned for and will result in an undefined, although probably consistent (in some way), result.

Usage

{{Format price/digits|number}}

Examples

See also