Permanently protected template

Template:Format price/digits

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

1

Template documentation[view] [edit] [history] [purge]

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

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Format_price/digits&oldid=827250759"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Template:Format_price/digits
This page is based on the copyrighted Wikipedia article "Template:Format price/digits"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA