Template:Formdec/doc


 * Description
 * This template is a shortcut for using parser function "formatnum" together with Template:Decimals.
 * Instead of typing {{formatnum:{{decimals| and your data, accomplish the same thing with fewer keystrokes by typing {{formdec| and your data.


 * Syntax
 * The second parameter, "decimals", is optional. If it is omitted, the template will default to 0.
 * The second parameter, "decimals", is optional. If it is omitted, the template will default to 0.


 * Sample output of long form and shortcut, compared
 * → {{formatnum:{{decimals|9876/4321|2}}}}
 * → {{formdec|9876/4321|2}}


 * → {{formatnum:{{decimals|14.3*9.456|0}}}}
 * → {{formdec|14.3*9.456}}


 * See also
 * {{t|Decimals}}