Difference between revisions of "Template:Coord/dec2dms/dm1"

From blackwiki
Jump to navigation Jump to search
imported>MZMcBride
m (Unprotected Template:Coord/dec2dms/dm1: this is a wiki)
imported>Voice of Clam
(Fixing bug caused by changes to mod functionality, per editrequest)
Line 1: Line 1:
{{#expr:{{{1}}} mod 360}}°{{padleft:{{#expr:({{{1}}} * 600 round 0) mod 600 / 10}}|2|0}}′<noinclude>[[Category:Coord template]]</noinclude>
+
<includeonly>{{#expr:(floor({{{1}}}+1.0/1200.0)) mod 360}}°{{padleft:{{padright:{{#expr:(({{{1}}}-trunc({{{1}}}))*600 round 0) mod 600 / 10}}|{{#ifexpr:(({{{1}}}-trunc({{{1}}}))*600 round 0) mod 600 >= 100|4|3}}|.0}}|4|0}}′</includeonly><noinclude>
 +
Template to convert positive decimal degrees to degrees and minutes, rounded to 1 decimal place
 +
{{pp-template|small=yes}}[[Category:Coord template]][[sl:Predloga:Koord/dec2dms/dm]]</noinclude>

Revision as of 13:05, 18 December 2012

Template to convert positive decimal degrees to degrees and minutes, rounded to 1 decimal placesl:Predloga:Koord/dec2dms/dm