Module:Decimals/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Decimals
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
40px | This Lua module is used on approximately 5,600 pages, so changes to it will be widely noticed. Please test any changes in the module's /sandbox or /testcases subpages. Please consider discussing changes on the talk page before implementing them. |
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
40x40px | <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate> |
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}}
For more information, see Template:Decimals.