This template calculates the engine capacity given the bore, stroke and number of cylinders.

Usage

edit
Input Output Notes
{{engine size|bore=90|stroke=100|cyl=4|scale=1000}} 2545 Metric mm → cc usually requires |scale=1000
{{engine size|bore=3.898|stroke=3.622|cyl=8}} 346 Non-metric inch → cu-in usually requires no scaling
{{engine size|bore=90|stroke=100|cyl=4|scale=1000|rnd=1}} 2544.7 |rnd= controls how many digits are after the decimal point. Use negative numbers to control digits before the point.
{{engine size|bore=90|stroke=100|cyl=4|scale=1000|rnd=-1}} 2540
{{engine size|bore=3.898|stroke=3.622|cyl=8|rnd=1}} 345.8
{{engine size|bore=3.898|stroke=3.622|cyl=8|rnd=-1}} 350
{{engine size|bore=90|stroke=100|cyl=4|scale=1000}} 2.5 Metric mm → litre usually requires |scale=1000000 and |rnd=1