Template:Rounded calculation/doc
Appearance
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
[edit]{{rounded calculation|<calculation>|<decimal places>}}
- Alias:
{{rndcalc|<calculation>|<decimal places>}}
Examples
[edit]{{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
[edit]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
[edit]- {{round}}
- {{significant figures}}