Template:InchDec: Difference between revisions

From The Freestyle Knowledge Base
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
{{#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" }}


{{#vardefine:frac|}}
{{#var:float}}


<!-- Output -->
<!-- Output -->
{{{1}}}" ({{#var:mm}} mm)
{{{1}}}" ({{#var:mm}} mm)
{{#var:whole}} {{#var:frac}}
{{#var:whole}}  
{{#ifeq: float | 0.375 | 3/8" }}


<!--
<!--

Revision as of 00:54, 15 February 2016



Expression error: Unrecognized punctuation character "{".

{{{1}}}" (Expression error: Unrecognized punctuation character "{". mm) Expression error: Unrecognized punctuation character "{".