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.)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 22:41, 24 October 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.