Template:InchDec: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
{{#vardefine:mm|{{#expr: {{#var:dec}}} * 25.4 round 1}} }} | {{#vardefine:mm|{{#expr: {{#var:dec}}} * 25.4 round 1}} }} | ||
{{#vardefine:whole|{{#expr: {{#var:dec}} / 1 round 0}} }} | {{#vardefine:whole|{{#expr: {{#var:dec}} / 1 round 0}} }} | ||
{{#vardefine: | {{#vardefine:float|{{#expr: {{#var:dec}} - {{#var:whole}} }} }} | ||
{{#ifeq: float | 0.375 | 3/8" }} | |||
{{#vardefine:frac|}} | |||
<!-- Output --> | <!-- Output --> | ||
{{#var:dec}}" ({{#var:mm}} mm) | {{#var:dec}}" ({{#var:mm}} mm) | ||
{{#var:whole}} | {{#var:whole}} {{#var:frac}} | ||
<!-- | <!-- | ||
7.375" (187.3 mm) 7 3/8" | 7.375" (187.3 mm) 7 3/8" | ||
mm = in x 25.4 | mm = in x 25.4 | ||
--> | --> |
Revision as of 00:50, 15 February 2016
{{{1}}}" (Expression error: Unrecognized punctuation character "{". mm)
Expression error: Unrecognized punctuation character "{".