Difference between revisions of "Module:Decimals/doc"

From Wiki.Agency
Jump to: navigation, search
(Added documentation of the new 'error' parameter. Note that it's not implemented in the _main function.)
(No difference)

Revision as of 15:15, 5 June 2018

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.