Jump to content

Template:Calculate ratio

From Wikipedia, the free encyclopedia

Calculates and displays a ratio at N:1 {{Calculate ratio|5|3}} gives 1.7:1 {{Calculate ratio|5|3|2}} gives 1.67:1

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

Number being divided

Example
5
Numberrequired
22

Number being converted to 1

Example
3
Numberrequired
33

Number of decimals

Default
1
Example
2
Numbersuggested