Difference between revisions of "Template:Coord/dec2dms/doc"
< Template:Coord | dec2dms
Jump to navigation
Jump to search
imported>Pigsonthewing (examples with varying precision) |
imported>Quarl ({{template example row}}) |
||
| Line 7: | Line 7: | ||
== Examples == | == Examples == | ||
<table class="prettytable"> | <table class="prettytable"> | ||
| − | + | {{template example row|10.391944|N|S|d}} | |
| − | + | {{template example row|10.390000|N|S|d}} | |
| − | + | {{template example row|10.39|N|S|d}} | |
| − | + | {{template example row|-10.391944|N|S|dm}} | |
| − | + | {{template example row|10.391944|E|W|dms}} | |
| − | + | {{template example row|10|N|S|d}} | |
| − | + | {{template example row|10|E|W|dm}} | |
| − | + | {{template example row|-10|E|W|dms}} | |
| − | |||
| − | |||
| − | |||
</table> | </table> | ||
Revision as of 05:46, 7 April 2007
Given a decimal coordinate, two cardinal directions, and precision, render a coordinate in degrees/minutes/seconds.
Usage
{{coor dec2dms|coord|N|S|precision}}
{{coor dec2dms|coord|E|W|precision}}