Difference between revisions of "Template:HMS2Deg/doc"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
m
imported>DePiep
Line 16: Line 16:
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:Conversion templates|{{PAGENAME}}]]
+
[[Category:Numerical conversion templates|{{PAGENAME}}]]
 
[[Category:Subtemplates of Template Convert/wrapper templates|HMS2Deg]]
 
[[Category:Subtemplates of Template Convert/wrapper templates|HMS2Deg]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 20:29, 24 October 2014

Usage

Usage: {{HMS2Deg|hours|minutes|seconds|p=precision}}.

This template converts an hour angle, given in hours|minutes|seconds, to decimal degrees.

So {{HMS2Deg|12|29|06.7}} returns 187.27792.

Only parameter p is optional (defaults to 6).

See also