Difference between revisions of "Template:Height CentimetersToInches"

From K15 Database
Jump to navigation Jump to search
m
m (Changing height calculation to properly floor the ft value instead of rounding)
 
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#switch:{{{1}}}|-1=secret (ひみつ)|{{{1}}} cm ({{ #expr: {{{1}}} * 0.393700787 round 0}} in, {{ #expr: {{{1}}} * 0.393700787 / 12 round 0}} ft {{ #expr: {{{1}}} * 0.393700787 mod 12 round 0}} in)}}</includeonly>
+
<includeonly>{{#if:{{{1|}}}|{{#switch:{{{1}}}|-1=secret (ひみつ)|{{{1}}} cm ({{ #expr: {{{1}}} * 0.393700787 round 0}} in, {{ #expr: (floor{{ #expr: {{{1}}} * 0.393700787 / 12 }}) }} ft {{ #expr: {{{1}}} * 0.393700787 mod 12 round 0}} in)}}</includeonly>

Latest revision as of 19:12, 18 June 2008