Template:Convert: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
en>Drumguy8800
(only round if asked to.)
en>Drumguy8800
(hmmgh)
Line 1: Line 1:
{{formatnum:{{{1}}}}} [[{{#switch: {{{2|}}}|acre=acre|ft=foot (unit of length){{!}}feet|ha=hectare|sqft=square foot{{!}}square feet|m=metre{{!}}metres|km=kilometre{{!}}kilometres|mi=mile{{!}}miles|sqm=square metre{{!}}square metres|sqkm=square kilometre{{!}}square kilometres|sqmi=square mile{{!}}square miles}}]] ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
{{formatnum:{{{1}}}}} [[{{#switch: {{{2|}}}|acre=acre|ft=foot (unit of length){{!}}feet|ha=hectare|sqft=square foot{{!}}square feet|m=metre{{!}}metres|km=kilometre{{!}}kilometres|mi=mile{{!}}miles|sqm=square metre{{!}}square metres|sqkm=square kilometre{{!}}square kilometres|sqmi=square mile{{!}}square miles}}]] ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
|acre = {{#switch: {{{3|}}}|ha=0.404685642|sqft=43560|sqm=4046.85642|sqkm=100|sqmi=258.998811}}
|acre = {{#switch: {{{3|}}}|ha=0.404685642|sqft=43560|sqm=4046.85642|sqkm=100|sqmi=258.998811}}
|ft = {{#switch: {{{3|}}}|m=0.3048|mi=5280|km=3280.8399}}
|ft = {{#switch: {{{3|}}}|m=0.3048|mi=0.000189393939|km=0.0003048}}
|sqft = {{#switch: {{{3|}}}|acre=0.0000229568411|ha=0.00009290304|sqm=0.09290304|sqkm=0.00000009290304|sqmi=0.0000000358700643}}
|sqft = {{#switch: {{{3|}}}|acre=0.0000229568411|ha=0.00009290304|sqm=0.09290304|sqkm=0.00000009290304|sqmi=0.0000000358700643}}
|ha = {{#switch: {{{3|}}}|acre=2.47105381|sqft=107639.104|sqm=10000|sqkm=0.01|sqmi=0.00386102159}}
|ha = {{#switch: {{{3|}}}|acre=2.47105381|sqft=107639.104|sqm=10000|sqkm=0.01|sqmi=0.00386102159}}
|m = {{#switch: {{{3|}}}|ft=3.2808399|km=1000|mi=1609.344}}
|m = {{#switch: {{{3|}}}|ft=3.2808399|km=1000|mi=1609.344}}
|sqm = {{#switch: {{{3|}}}|acre=0.000247105381|ha=0.0001|sqft=10.7639104}}
|sqm = {{#switch: {{{3|}}}|acre=0.000247105381|ha=0.0001|sqft=10.7639104}}
|km = {{#switch: {{{3|}}}|ft=3280.8399|m=1000}}
|sqkm = {{#switch: {{{3|}}}|acre=247.105381|ha=100|sqft=10763910.4|sqm=1000000}}
|sqkm = {{#switch: {{{3|}}}|acre=247.105381|ha=100|sqft=10763910.4|sqm=1000000}}
|mi = {{#switch: {{{3|}}}|ft=5280|m=1609.344}}
|sqmi = {{#switch: {{{3|}}}|acre=640|ha=258.998811|sqft=27878400|sqm=2589988.11}}
|sqmi = {{#switch: {{{3|}}}|acre=640|ha=258.998811|sqft=27878400|sqm=2589988.11}}
}} {{#if: {{{4|}}} | round {{{4}}} }}}}}}&nbsp;[[{{#switch: {{{3|}}}|acre=acre|ft=foot (unit of length){{!}}ft|ha=hectare{{!}}ha|sqft=square foot{{!}}ft²|m=metre{{!}}m|km=kilometre{{!}}km|mi=mile{{!}}mi|sqm=square metre{{!}}m²|sqkm=square kilometre{{!}}km²|sqmi=square mile{{!}}mi²}}]])<noinclude>{{esoteric}}<br/>Use in the following matter: <code><nowiki>{{convert|original value|original unit|conversion unit|round to}}</nowiki></code><br/><br/>'''Rounding:''' The number given for rounding rounds off the result to the power of 1/10 the rounding number. For instance, if the result is 8621 and the round number is '-2', the result will be 8700. If the result is '234.0283043' and the round number is '0', the result will be 234.</noinclude>
}} {{#if: {{{4|}}} | round {{{4}}} }}}}}}&nbsp;[[{{#switch: {{{3|}}}|acre=acre|ft=foot (unit of length){{!}}ft|ha=hectare{{!}}ha|sqft=square foot{{!}}ft²|m=metre{{!}}m|km=kilometre{{!}}km|mi=mile{{!}}mi|sqm=square metre{{!}}m²|sqkm=square kilometre{{!}}km²|sqmi=square mile{{!}}mi²}}]])<noinclude>{{esoteric}}<br/>Use in the following matter: <code><nowiki>{{convert|original value|original unit|conversion unit|round to}}</nowiki></code><br/><br/>'''Rounding:''' The number given for rounding rounds off the result to the power of 1/10 the rounding number. For instance, if the result is 8621 and the round number is '-2', the result will be 8700. If the result is '234.0283043' and the round number is '0', the result will be 234.</noinclude>

Revision as of 16:45, 11 December 2006

{{{1}}} [[]] (Expression error: Unrecognized punctuation character "{". [[]])Template:Esoteric
Use in the following matter: {{convert|original value|original unit|conversion unit|round to}}

Rounding: The number given for rounding rounds off the result to the power of 1/10 the rounding number. For instance, if the result is 8621 and the round number is '-2', the result will be 8700. If the result is '234.0283043' and the round number is '0', the result will be 234.