Template:InchDec: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<!-- mm = in x 25.4 -->
<!-- mm = in x 25.4 -->
{{#vardefine:mm|{{#expr: {{{1}}} * 25.4 round 1}} }}
<!--
{{#vardefine:whole|{{#expr: {{{1}}} round 0}} }}
{{#vardefine:whole|{{#expr: {{{1}}} round 0}} }}
{{#vardefine:float|{{#expr: {{{1}}} - 0{{#var:whole}} }} }}
{{#vardefine:float|{{#expr: {{{1}}} - 0{{#var:whole}} }} }}
 
{{#var:whole}} 1/{{#expr: 1 / {{#var:float}} round 4}}"  
{{#var:mm}}
# Attempted to return a fraction as well. Not working.
<!-- {{#var:whole}} 1/{{#expr: 1 / {{#var:float}} round 4}}" -->
-->
{{#vardefine:mm|{{#expr: {{{1}}} * 25.4 round 1}} }}
{{#var:mm}} mm


<noinclude>
<noinclude>
Cookies help us deliver better freestyle-related content. By using our services, you agree to our use of cookies and promise to practice your footwork everyday.

Navigation menu