Template:InchDec: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
{{#vardefine:mm|{{#expr: {{{1}}} * 25.4 round 1}} }}
{{#vardefine:mm|{{#expr: {{{1}}} * 25.4 round 1}} }}
{{#vardefine:whole|{{#expr: {{{1}}} / 1 round 0}} }}
{{#vardefine:whole|{{#expr: {{{1}}} / 1 round 0}} }}
{{#vardefine:frac|test }}
{{#vardefine:frac|{{#expr: {{{1}}} / 1 round 1}} }}


<!-- Output -->
<!-- Output -->
{{#var:dec}}" ({{#var:mm}} mm)
{{#var:dec}}" ({{#var:mm}} mm)
{{#var:whole}}
{{#var:whole}} 1/{{#var:frac}}