Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Rounded calculation/doc

From Wikipedia, the free encyclopedia

This template is used to perform a calculation and then round the output.

Usage

[edit]

Examples

[edit]
  1. {{rounded calculation|900/5,679|5}}: 0.15848
  2. {{rounded calculation|2/3 * 4^2|1}}: 10.7
  3. {{rndcalc|2/3|0}}: 1
  4. {{rounded calculation|12345|-2}}: 12,300

Template Data

[edit]

This template is used to perform a calculation and then round the output.

Template parameters

ParameterDescriptionTypeStatus
calculation1

a calculation

Example
2/3 * 4^2
Stringrequired
decimal places2

number of decimal places

Default
0
Example
3
Numberoptional

See also

[edit]