Template:InchDec: Difference between revisions

From The Freestyle Knowledge Base
Jump to navigation Jump to search
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: {{#var:dec}}} * 25.4 round 1}} }}
{{#vardefine:whole|{{#expr: {{{1}}} / 1 round 0}} }}
{{#vardefine:whole|{{#expr: {{#var:dec}} / 1 round 0}} }}
{{#vardefine:frac|{{#expr: {{{1}}} / 1000}} }}
{{#vardefine:frac|{{#expr: {{#var:dec}} / 1}} }}
 
\frac{1}{4}
<!-- Output -->
<!-- Output -->
{{#var:dec}}" ({{#var:mm}} mm)
{{#var:dec}}" ({{#var:mm}} mm)
Line 11: Line 11:


<!--
<!--
7.375" (187.3 mm) 7 3/8"
mm = in x 25.4
mm = in x 25.4
-->
-->

Revision as of 00:43, 15 February 2016



\frac{1}{4} {{{1}}}" (Expression error: Unrecognized punctuation character "{". mm) Expression error: Unrecognized punctuation character "{". 1/Expression error: Unrecognized punctuation character "{".