Template:FXConvert/Wordify

From HandWiki
< Template:FXConvert
Revision as of 11:59, 1 March 2022 by imported>MusikBot II (Protected "Template:FXConvert/Wordify": High-risk template or module: 250 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[view] [edit] [history] [purge]

Usage

This subtemplate will accept a number and output a formatted string with a smaller number and the divisor as a word in a number scaling system. For example, an input of 1010000 (with the short scale system and rounding to two decimal places) will result in an output of "1.01 billion".

This template will factorise out trillion, billion and million from the given number for the short scale system. Use the round parameter to round the resulting number (e.g. round=3 will yield 1.010 billion). Use the numsys parameter to choose the numbering system; currently, the supported arguments are usa for the short scale and ind for the Indian numbering system. The number output will be formatted to add decimal separators in the case of large numbers.