Module:Decimals/doc

From Wiki.Agency
< Module:Decimals
Revision as of 15:15, 5 June 2018 by Jhertel (talk) (Added documentation of the new 'error' parameter. Note that it's not implemented in the _main function.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is the documentation page for Module:Decimals

Usage

From other Lua modules

<syntaxhighlight lang="lua"> local roundAndPad = require('Module:Decimals')._main result = roundAndPad(n, decimals) </syntaxhighlight>

From wikitext

{{#invoke:Decimals|main|n|decimals[|error=string to display instead of error message]}}

For more information, see Template:Decimals.