Template:Format price/digits/doc

This is the current revision of this page, as edited by 2600:1700:a2a0:fb50:9040:f609:caed:f930 (talk) at 03:56, 29 October 2023. The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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