Distance calculator

Insert value:
Choose unit:
Metres (m)
Kilometer (km)
Feet
Inches
Miles
Nautical mile
Yard (yd)
Sea mile
function convert (vei) { var meter , yard , fot , foot , tommer , alen , favn , mannshoyde , pilskudd , nautisk num2=parseFloat(document.lengdemaal.Lengde.value) num3=parseFloat(document.lengdemaal.Lengde.value) num4=parseFloat(document.lengdemaal.Lengde.value) num5=parseFloat(document.lengdemaal.Lengde.value) num6=parseFloat(document.lengdemaal.Lengde.value) num7=parseFloat(document.lengdemaal.Lengde.value) num8=parseFloat(document.lengdemaal.Lengde.value) num9=parseFloat(document.lengdemaal.Lengde.value) num10=parseFloat(document.lengdemaal.Lengde.value) num11=parseFloat(document.lengdemaal.Lengde.value) num12=parseFloat(document.lengdemaal.Lengde.value) num13=parseFloat(document.lengdemaal.Lengde.value) num14=parseFloat(document.lengdemaal.Lengde.value) num15=parseFloat(document.lengdemaal.Lengde.value) if (vei==1) { //fra meter meter=Math.round((num2*1)*100000)/100000 yard=Math.round((num3*1.0936133)*100000)/100000 fot=Math.round((num4*3.1867)*100000)/100000 foot=Math.round((num5*3.2808)*100000)/100000 tommer=Math.round((num6*39.3700787)*100000)/100000 alen=Math.round((num7*1.640419)*100000)/100000 favn=Math.round((num8*0.5555556)*100000)/100000 mannshoyde=Math.round((num9*0.60277275)*100000)/100000 pilskudd=Math.round((num10*0.0025)*100000)/100000 kilometer=Math.round((num11*0.001)*100000)/100000 nautisk=Math.round((num12*0.000540)*100000)/100000 sjo=Math.round((num13*0.0001349892)*100000)/100000 miles=Math.round((num14*0.00062137)*100000)/100000 maraton=Math.round((num15*0.0000236995)*100000)/100000 } if (vei==2) { //fra yard meter=Math.round((num2* 0.91440)*100000)/100000 yard=Math.round((num3*1)*100000)/100000 fot=Math.round((num4*2.914)*100000)/100000 foot=Math.round((num5*3)*100000)/100000 tommer=Math.round((num6*36)*100000)/100000 alen=Math.round((num7* 1.4999991336)*100000)/100000 favn=Math.round((num8* 0.50800004064)*100000)/100000 mannshoyde=Math.round((num9* 0.5511754026)*100000)/100000 pilskudd=Math.round((num10* 0.002286)*100000)/100000 kilometer=Math.round((num11*0.0009144)*100000)/100000 nautisk=Math.round((num12*0.000493776)*100000)/100000 sjo=Math.round((num13*0.000123412448)*100000)/100000 miles=Math.round((num14*0.0005681807)*100000)/100000 maraton=Math.round((num15*0.0000216708228)*100000)/100000 } if (vei==3) { //fra fot meter=Math.round((num2* 0.3138)*100000)/100000 yard=Math.round((num3*0.3431805)*100000)/100000 fot=Math.round((num4*1)*100000)/100000 foot=Math.round((num5*1.029528979821)*100000)/100000 tommer=Math.round((num6*12.35449797594)*100000)/100000 alen=Math.round((num7*0.5147704521911)*100000)/100000 favn=Math.round((num8*0.1743357077852)*100000)/100000 mannshoyde=Math.round((num9*0.1891526500766)*100000)/100000 pilskudd=Math.round((num10*0.0007845106222725)*100000)/100000 kilometer=Math.round((num11*0.0003138)*100000)/100000 nautisk=Math.round((num12*0.000169452)*100000)/100000 sjo=Math.round((num13*0.00004235961)*100000)/100000 miles=Math.round((num14*0.000194985906)*100000)/100000 maraton=Math.round((num15*0.0000074369)*100000)/100000 } if (vei==4) { //fra foot meter=Math.round((num2* 0.3048037064131)*100000)/100000 yard=Math.round((num3* 0.3333373872226)*100000)/100000 fot=Math.round((num4*0.9713179712263)*100000)/100000 foot=Math.round((num5*1)*100000)/100000 tommer=Math.round((num6*12)*100000)/100000 alen=Math.round((num7*0.5)*100000)/100000 favn=Math.round((num8*0.1693354059985)*100000)/100000 mannshoyde=Math.round((num9*0.1837273683248)*100000)/100000 pilskudd=Math.round((num10*0.000762)*100000)/100000 kilometer=Math.round((num11*0.000304803706413)*100000)/100000 nautisk=Math.round((num12*0.0000164594)*100000)/100000 sjo=Math.round((num13*0.00004114520848573)*100000)/100000 miles=Math.round((num14*0.0001893958790538)*100000)/100000 maraton=Math.round((num15* 0.000007223695440135)*100000)/100000 } if (vei==5) { //fra tommer meter=Math.round((num2*0.0254)*100000)/100000 yard=Math.round((num3*0.02777777782)*100000)/100000 fot=Math.round((num4*0.08094218)*100000)/100000 foot=Math.round((num5*0.08333232)*100000)/100000 tommer=Math.round((num6*1)*100000)/100000 alen=Math.round((num7*0.0416666426)*100000)/100000 favn=Math.round((num8*0.01411111224)*100000)/100000 mannshoyde=Math.round((num9*0.01531042785)*100000)/100000 pilskudd=Math.round((num10*0.0000635)*100000)/100000 kilometer=Math.round((num11*0.0000254)*100000)/100000 nautisk=Math.round((num12*0.000013716)*100000)/100000 sjo=Math.round((num13*0.00000342872568)*100000)/100000 miles=Math.round((num14*0.000015782798)*100000)/100000 maraton=Math.round((num15* 0.0000006019673)*100000)/100000 } if (vei==6) { //fra alen meter=Math.round((num2*0.6096003521)*100000)/100000 yard=Math.round((num3*0.6666670527467)*100000)/100000 fot=Math.round((num4*1.942613442)*100000)/100000 foot=Math.round((num5*1.999976835186)*100000)/100000 tommer=Math.round((num6*24.00001383792)*100000)/100000 alen=Math.round((num7*1)*100000)/100000 favn=Math.round((num8*0.338666693739)*100000)/100000 mannshoyde=Math.round((num9*0.3674504806393)*100000)/100000 pilskudd=Math.round((num10*0.00152400088025)*100000)/100000 kilometer=Math.round((num11*0.0006096003521)*100000)/100000 nautisk=Math.round((num12*0.000329184190134)*100000)/100000 sjo=Math.round((num13*0.0000822894638497)*100000)/100000 miles=Math.round((num14*0.0003787873707844)*100000)/100000 maraton=Math.round((num15*0.00001444722354459)*100000)/100000 } if (vei==7) { //fra favn meter=Math.round((num2* 1.799999856)*100000)/100000 yard=Math.round((num3*1.96850378252)*100000)/100000 fot=Math.round((num4*5.736059541115)*100000)/100000 foot=Math.round((num5*5.905439527565)*100000)/100000 tommer=Math.round((num6*70.86613599071)*100000)/100000 alen=Math.round((num7*2.95275396378)*100000)/100000 favn=Math.round((num8*1)*100000)/100000 mannshoyde=Math.round((num9*1.084990863201)*100000)/100000 pilskudd=Math.round((num10*0.00449999964)*100000)/100000 kilometer=Math.round((num11*0.001799999856)*100000)/100000 nautisk=Math.round((num12*0.00097199992224)*100000)/100000 sjo=Math.round((num13*0.0002429805405616)*100000)/100000 miles=Math.round((num14*0.001118465910523)*100000)/100000 maraton=Math.round((num15*0.00004265909658727)*100000)/100000 } if (vei==8) { //fra mannshoyde meter=Math.round((num2*1.6590)*100000)/100000 yard=Math.round((num3*1.814304620937)*100000)/100000 fot=Math.round((num4*5.286735340972)*100000)/100000 foot=Math.round((num5*5.442847242182)*100000)/100000 tommer=Math.round((num6*65.31496106949)*100000)/100000 alen=Math.round((num7*2.721455971591)*100000)/100000 favn=Math.round((num8*0.9216667475429)*100000)/100000 mannshoyde=Math.round((num9*1)*100000)/100000 pilskudd=Math.round((num10*0.0041475)*100000)/100000 kilometer=Math.round((num11*0.001659)*100000)/100000 nautisk=Math.round((num12*0.00089586)*100000)/100000 sjo=Math.round((num13*0.0002239470828)*100000)/100000 miles=Math.round((num14*0.00103085283)*100000)/100000 maraton=Math.round((num15*0.0000393174705)*100000)/100000 } if (vei==9) { //fra pilskudd meter=Math.round((num2*400)*100000)/100000 yard=Math.round((num3*437.44532)*100000)/100000 fot=Math.round((num4*1274.68)*100000)/100000 foot=Math.round((num5*1312.32)*100000)/100000 tommer=Math.round((num6*15748.03148)*100000)/100000 alen=Math.round((num7*656.1676)*100000)/100000 favn=Math.round((num8*222.22224)*100000)/100000 mannshoyde=Math.round((num9*241.1091)*100000)/100000 pilskudd=Math.round((num10*1)*100000)/100000 kilometer=Math.round((num11*0.4)*100000)/100000 nautisk=Math.round((num12*0.216)*100000)/100000 sjo=Math.round((num13*0.05399568)*100000)/100000 miles=Math.round((num14*0.248548)*100000)/100000 maraton=Math.round((num15*0.0094798)*100000)/100000 } if (vei==10) { //fra kilometer yard=Math.round((num3*1093.6133)*100000)/100000 fot=Math.round((num4*3186.7)*100000)/100000 foot=Math.round((num5*3280.8)*100000)/100000 tommer=Math.round((num6*39370.0787)*100000)/100000 alen=Math.round((num7*1640.419)*100000)/100000 favn=Math.round((num8*555.5556)*100000)/100000 mannshoyde=Math.round((num9*602.77275)*100000)/100000 kilometer=Math.round((num11*1)*100000)/100000 meter=Math.round((num2*1000)*100000)/100000 nautisk=Math.round((num12*0.540)*100000)/100000 sjo=Math.round((num13*0.1349892008639)*100000)/100000 miles=Math.round((num14*0.6213700339)*100000)/100000 pilskudd=Math.round((num10*2.5)*100000)/100000 maraton=Math.round((num15*0.0236995)*100000)/100000 } if (vei==11) { //fra nautisk mil meter=Math.round((num2* 1851.851851852)*100000)/100000 yard=Math.round((num3*2025.2098148)*100000)/100000 fot=Math.round((num4*5901.296296297)*100000)/100000 foot=Math.round((num5*6075.5555555556)*100000)/100000 tommer=Math.round((num6*72907.55314815)*100000)/100000 alen=Math.round((num7*3037.812962963)*100000)/100000 favn=Math.round((num8*1028.806592593)*100000)/100000 mannshoyde=Math.round((num9*1116.2458333333)*100000)/100000 pilskudd=Math.round((num10*4.62962962963)*100000)/100000 kilometer=Math.round((num11*1.851851851)*100000)/100000 nautisk=Math.round((num12*1)*100000)/100000 sjo=Math.round((num13*0.25)*100000)/100000 miles=Math.round((num14*1.150685185185)*100000)/100000 maraton=Math.round((num15*0.04388796296297)*100000)/100000 } if (vei==12) { //fra sjømil meter=Math.round((num2*7408)*100000)/100000 yard=Math.round((num3* 8101,4873264)*100000)/100000 fot=Math.round((num4* 23607,61633971)*100000)/100000 foot=Math.round((num5* 24304,28744457)*100000)/100000 tommer=Math.round((num6* 291653,5430096)*100000)/100000 alen=Math.round((num7* 12152,223952)*100000)/100000 favn=Math.round((num8* 4115,5558848)*100000)/100000 mannshoyde=Math.round((num9* 4465,340532)*100000)/100000 kilometer=Math.round((num11*7.408)*100000)/100000 nautisk=Math.round((num12*4)*100000)/100000 sjo=Math.round((num13*1)*100000)/100000 miles=Math.round((num14*4.60310896)*100000)/100000 pilskudd=Math.round((num10*18.52)*100000)/100000 maraton=Math.round((num15*0.175565896)*100000)/100000 } if (vei==13) { //fra miles meter=Math.round((num2* 1609.347087886)*100000)/100000 yard=Math.round((num3*1760.003379628)*100000)/100000 fot=Math.round((num4*5128.506364966)*100000)/100000 foot=Math.round((num5*5279.945925936)*100000)/100000 tommer=Math.round((num6*63360.12150569)*100000)/100000 alen=Math.round((num7*2640.003540563)*100000)/100000 favn=Math.round((num8*894.0817870188)*100000)/100000 mannshoyde=Math.round((num9*970.0705698695)*100000)/100000 pilskudd=Math.round((num10*4.03367719715)*100000)/100000 kilometer=Math.round((num11*1.609347087886)*100000)/100000 nautisk=Math.round((num12*0.8690474274584)*100000)/100000 sjo=Math.round((num13*0.2172444759161)*100000)/100000 miles=Math.round((num14*1)*100000)/100000 maraton=Math.round((num15* 0.03814072130935)*100000)/100000 } if (vei==14) { //fra maraton meter=Math.round((num2*42195)*100000)/100000 yard=Math.round((num3*46145.01358849)*100000)/100000 fot=Math.round((num4*134463.3798663)*100000)/100000 foot=Math.round((num5*138434.9588459)*100000)/100000 tommer=Math.round((num6*1661220.472683)*100000)/100000 alen=Math.round((num7*69217.50852419)*100000)/100000 favn=Math.round((num8*23441.668542)*100000)/100000 mannshoyde=Math.round((num9*25433.99618625)*100000)/100000 pilskudd=Math.round((num10*105.4875)*100000)/100000 kilometer=Math.round((num11*42.195)*100000)/100000 nautisk=Math.round((num12*22.7853)*100000)/100000 sjo=Math.round((num13*5.695869294)*100000)/100000 miles=Math.round((num14*26.21870715)*100000)/100000 maraton=Math.round((num15*1)*100000)/100000 } document.lengdemaal.Lengde2.value=meter document.lengdemaal.Lengde3.value=yard //document.lengdemaal.Lengde4.value=fot document.lengdemaal.Lengde5.value=foot document.lengdemaal.Lengde6.value=tommer //document.lengdemaal.Lengde7.value=alen //document.lengdemaal.Lengde8.value=favn //document.lengdemaal.Lengde9.value=mannshoyde //document.lengdemaal.Lengde10.value=pilskudd document.lengdemaal.Lengde11.value=kilometer document.lengdemaal.Lengde12.value=nautisk document.lengdemaal.Lengde13.value=sjo document.lengdemaal.Lengde14.value=miles //document.lengdemaal.Lengde15.value=maraton } function resetvalue() { document.lengdemaal.Lengde.value="" document.lengdemaal.select.selectedIndex="0" document.lengdemaal.Lengde2.value="" document.lengdemaal.Lengde3.value="" //document.lengdemaal.Lengde4.value="" document.lengdemaal.Lengde5.value="" document.lengdemaal.Lengde6.value="" //document.lengdemaal.Lengde7.value="" //document.lengdemaal.Lengde8.value="" //document.lengdemaal.Lengde9.value="" //document.lengdemaal.Lengde10.value="" document.lengdemaal.Lengde11.value="" document.lengdemaal.Lengde12.value="" document.lengdemaal.Lengde13.value="" document.lengdemaal.Lengde14.value="" //document.lengdemaal.Lengde15.value="" } function updateBreadCrumb() { try { parent.document.getElementById('Breadcrumbstrail_span').innerHTML = "Home | Tools | Distance calculator"; } catch(e) {} } function clearBreadCrumb() { try { parent.document.getElementById('Breadcrumbstrail_span').innerText = ""; } catch(e) {} } // -->