Template:Rounded calculation/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation subpage}} {{Template shortcut|rndcalc}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> This template is used to perform a calculation and then round the output. == Usage == *{{tlxi|rounded calculation|<calculation>|<decimal places>}} *Alias: {{tlxi|rndcalc|<calculation>|<decimal places>}} == Examples == # {{tlc|rounded calculation|900/5,679|5}}: {{rounded calculation|900/5,679|5}} # {{tlc|rounded calculati..." |
(No difference)
|
Latest revision as of 00:35, 21 February 2025
This is a documentation subpage for Template:Rounded calculation. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used to perform a calculation and then round the output.
Usage
{{rounded calculation|<calculation>|<decimal places>}}
- Alias:
{{rndcalc|<calculation>|<decimal places>}}
Examples
{{rounded calculation|900/5,679|5}}
: 0.15848{{rounded calculation|2/3 * 4^2|1}}
: 10.7{{rndcalc|2/3|0}}
: 1{{rounded calculation|12345|-2}}
: 12,300
Template Data
This template is used to perform a calculation and then round the output.
Parameter | Description | Type | Status | |
---|---|---|---|---|
calculation | 1 | a calculation
| String | required |
decimal places | 2 | number of decimal places
| Number | optional |
See also
- {{round}}
- {{significant figures}}