15,595
edits
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:dec|{{{1}}} }} | {{#vardefine:dec|{{{1}}} }} | ||
{{#vardefine:mm|{{#expr: {{{1}}} * 25.4 round 1}} }} | {{#vardefine:mm|{{#expr: {{{1}}} * 25.4 round 1}} }} | ||
{{#vardefine:whole|{{#expr: {{{1}}} / 1 | {{#vardefine:whole|{{#expr: {{{1}}} / 1 }} }} | ||
{{#vardefine:float|{{#expr: {{{1}}} - {{#var:whole}} }} }} | {{#vardefine:float|{{#expr: {{{1}}} - {{#var:whole}} }} }} | ||
{{#ifeq: float | 0.375 | 3/8" }} | {{#ifeq: float | 0.375 | 3/8" }} | ||
Line 8: | Line 8: | ||
<!-- Output --> | <!-- Output --> | ||
{{ | {{{1}}}" ({{#var:mm}} mm) | ||
{{#var:whole}} {{#var:frac}} | {{#var:whole}} {{#var:frac}} | ||