ઢાંચો:Coord/dec2dms
Given a decimal coordinate, two cardinal directions, and precision, render a coordinate in degrees/minutes/seconds.
Usage
ફેરફાર કરો{{coord/dec2dms|coord|N|S|precision}} {{coord/dec2dms|coord|E|W|precision}}
Precision codes:
d | Degrees (rounded to integer) |
d1 | Degrees (rounded to 0.1 degrees) |
dm | Degrees, minutes (rounded to integer) |
dm1 | Degrees, minutes (rounded to 0.1 minutes) |
dms | Degrees, minutes, seconds (rounded to integer) |
dms1 | Degrees, minutes, seconds (rounded to 0.1 seconds) |
Examples
ફેરફાર કરો{{Coord/dec2dms|10.391944|N|S|d}} |
૧૦°N |
{{Coord/dec2dms|10.391944|N|S|d1}} |
૧૦.૪°N |
{{Coord/dec2dms|10.390000|N|S|d}} |
૧૦°N |
{{Coord/dec2dms|10.390000|N|S|d1}} |
૧૦.૪°N |
{{Coord/dec2dms|10.39|N|S|d}} |
૧૦°N |
{{Coord/dec2dms|10.39|N|S|d1}} |
૧૦.૪°N |
{{Coord/dec2dms|-10.391944|N|S|dm}} |
10°24′S |
{{Coord/dec2dms|-10.391944|N|S|dm1}} |
૧૦°૨૩.૫′S |
{{Coord/dec2dms|10.391944|E|W|dms}} |
૧૦°૨૩′૩૧″E |
{{Coord/dec2dms|10.391944|E|W|dms1}} |
૧૦°૨૩′૩૧″E |
{{Coord/dec2dms|10|N|S|d}} |
૧૦°N |
{{Coord/dec2dms|10|E|W|dm}} |
10°00′E |
{{Coord/dec2dms|-10|E|W|dms}} |
૧૦°૦૦′૦૦″W |
{{Coord/dec2dms|-10|E|W|dms1}} |
૧૦°૦૦′૦૦″W |
Subroutines
ફેરફાર કરોSubroutines of Template:Coord/dec2dms (edit | talk | history | links | watch | logs):
- Template:Coord/dec2dms/d (edit | talk | history | links | watch | logs)
- Template:Coord/dec2dms/d1 (edit | talk | history | links | watch | logs)
- Template:Coord/dec2dms/dm (edit | talk | history | links | watch | logs)
- Template:Coord/dec2dms/dm1 (edit | talk | history | links | watch | logs)
- Template:Coord/dec2dms/dms (edit | talk | history | links | watch | logs)
- Template:Coord/dec2dms/dms1 (edit | talk | history | links | watch | logs)